PunktDe Kontakt LogoKontakt
Schließen
Just type and press enter to search
Cancel

A toolbar for page properties in TYPO3

A toolbar for page properties in TYPO3

Pages are an essential part of structuring your own website. For this reason, TYPO3 offers editors several page types for different areas of application.
The most used page type is probably the standard page: here editors can enter and design their content.
However, there are also other, more specialized page types that offer different possibilities. Examples of these are internal references, external links to other websites or folders for structuring.

Each of these page types has various settings that editors can change via the page properties in the backend.
In addition to the title of the page, these include settings such as:

  • Page visibility
  • Social media information
  • Metadata and SEO settings
  • and much more...

However, editing these properties can sometimes be a bit cumbersome for editors. The button for editing consists only of a small icon in the upper area of the page view and the page properties are sometimes extensive and spread over various tabs. Editors have to go searching to discover the desired field on one of the tabs.

The goal of the Quickedit Toolbar we developed is therefore to offer editors a faster entry and easier structuring of page properties. For this purpose, fields can be grouped together in the toolbar, for which an edit button is then displayed.
This button then opens the page properties, but only the fields belonging to the group are displayed. All other fields are not visible here, so that a long search and navigation is not necessary.

For example, a button "SEO" would contain only the fields relevant for this topic.

Toolbar für Standard-Seite
Bearbeiten der Metadata-Felder

Installation and configuration

The extension can be installed via the usual options in TYPO3:

After activating the extension, only the PageTS of the Quickedit extension for standard page types has to be added on the start page.

Now the toolbar is available for every backend user and shows corresponding buttons for all standard page types.

Toolbar auf der Standardseite

If the toolbar should not be available to certain users or user groups, it can be deactivated again via an option in the user or group.

The PageTS for configuring the toolbar could look like this:

mod {
    web_layout {
        PageTypes {
            // Default Page (ID = 1)
            1 {
                config {
                    // Button "General"
                    10 {
                        label = LLL:EXT:quickedit/Resources/Private/Language/Backend.xlf:defaultPageType.group.general
                        fields = title, subtitle, nav_title, slug
                        previewFields = *
                    }
                    // Button "MetaData"
                    20 {
                        // Definition of button "MetaData" ...
                    }
                }
            }
            // Definition of other page types
        }
    }
}

Under mod.web_layout.PageTypes is the configuration of the different page types, the ID of the page type is used here (doctype).

In the 'config' block, the individual buttons are defined. Each button is created as a separate block with a unique number, such as 10, 20, 30, and so on.

Within the button block the button text ('label') and the fields to be edited ('fields') have to be defined.

In addition, 'previewFields' can be specified, the values of these fields are then available to the editor as a tooltip below the button.

Vorschau der Felder ('previewFields')

Configuration for custom page types

TYPO3 offers the possibility to define further page types in addition to the existing ones, for example page types for products or events. The custom page types can then be supplemented with custom fields that can contain information for their specific use case.

In the case of a page type for products, this could be a product code or properties of the product.bThe toolbar can be extended for these custom page types and fields by simple configuration using PageTS, so that the editors have corresponding buttons available as well.

The following example is a configuration for a page type "Product" with the ID 116:

mod {
        web_layout {
            PageTypes {
                // Product
                116 < .1
                116 {
                    config {
                        15 {
                            label = Product
                            fields = product_identification, product_technology, product_size, product_specs
                            previewFields = *
                        }
                    }
                }
            }
        }
    }

For more information about the extension 'quickedit' and how to use it, visit the official documentation at https://docs.typo3.org/p/punktde/quickedit/0.1/en-us/ or our repository at https://github.com/punktDe/quickedit

Autor: Alexander Böhm

Comments

Bisher wurden keine Kommentare eingereicht.

Other Posts

19. Januar 2021

A toolbar for page properties in TYPO3

How "Quickedit" could make working with pages easier for editors more

29. Mai 2020

Responsive Images in TYPO3 v10

In this article I would like to talk about the integration of Responsive Images in TYPO3 v10. Most of … more