TCA basics · Question 5 of 12
What are palettes used for in the TCA?
1 answer is correct. Easy
Show answer
Answer
- B They group related fields together so that they are displayed side by side in the form
Explanation
A palette is defined in the palettes section with a name and its own field list, e.g. 'dates' => ['showitem' => 'starttime, endtime'], and then included in showitem via --palette--;;dates. In the form its fields appear together in one section and, if the window is wide enough, next to each other. Typical examples are start and end time or the fields for language and visibility. The items of a select field, in contrast, are defined in config.items of the respective field configuration.