This documentation is not using the current rendering mechanism and is probably outdated. The extension maintainer should switch to the new system. Details on how to use the rendering mechanism can be found here.

A new paletteΒΆ

For the slightly different header fields there is enough inspiration in the original tt_content TCA. Look in the 'palettes' section for the palettes that are defined for the core elements.

$GLOBALS['TCA']['tt_content']['palettes']['introheader'] = array(
  'showitem' => 'header;LLL:EXT:cms/locallang_ttc.xlf:header_formlabel,
         --linebreak--, subheader;LLL:EXT:cms/locallang_ttc.xlf:subheader_formlabel,
         --linebreak--, header_link;LLL:EXT:cms/locallang_ttc.xlf:header_link_formlabel',
  'canNotCollapse' => 1

It adds the 'header' field with a label from the core locallang file, a line break, the 'subheader' field, and so on.

This palette can be used in the definition of the content element:

$GLOBALS['TCA']['tt_content']['types']['intro'] = array(
  'showitem' => '--palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.general;general,

It starts with the palette 'general' , next there is the field 'section_frame' , the new palette 'introheader', and so on.

Finally the new content element has to be added to the list of available content elements (the select box in the general section of a content element):

$GLOBALS['TCA']['tt_content']['columns']['CType']['config']['items'][] = array(

This defines a label from a language file, the internal name of the content element ( 'intro' ) which was already used in the 'types' list earlier, and an icon.