“Palettes” represent a way to move less frequently used form fields out of sight. Palettes are groups of fields which are associated with another field in the main form. When this field is activated the palette fields are displayed. In the backend, “palettes” are known as “secondary options”.
Let’s add a palette to the example from the previous section. The palette itself is defined like this:
'palettes' => array( '1' => array('showitem' => 'enforce_date'), ),
Now we change the “types” configuration to link the palette to the
'0' => array('showitem' => 'hidden, record_type, title, some_date;;1 '),
When a palette exists, an icon appears next to the relevant field:
With TYPO3 version 7.4 onwards the checkbox at the bottom “Show secondary options (palettes)” has been dropped and the icon is not shown any more. Palettes are now always shown and the collapse buttons are no longer rendered.
Clicking on this icon, the palette is revealed:
Palette display can be activated permanently by checking the “Show secondary options” box at the bottom of any forms screen:
This checkbox may be hidden per TSconfig, so it may not appear all the time.
By default all fields in a palette are shown on a single line.
It is possible to place them on several lines by using the
'palettes' => array( '1' => array('showitem' => 'salutation, firstname, lastname, --linebreak--, mobile, phone, fax, --linebreak--, email, email_work'), )