diff --git a/Classes/Tca/Registry.php b/Classes/Tca/Registry.php index 56c8fdee..72ad3c83 100644 --- a/Classes/Tca/Registry.php +++ b/Classes/Tca/Registry.php @@ -67,24 +67,8 @@ public function configureContainer(ContainerConfiguration $containerConfiguratio } $GLOBALS['TCA']['tt_content']['ctrl']['typeicon_classes'][$containerConfiguration->getCType()] = $containerConfiguration->getCType(); - $GLOBALS['TCA']['tt_content']['types'][$containerConfiguration->getCType()]['showitem'] = ' - --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:general, - --palette--;;general, - header;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:header.ALT.div_formlabel, - --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:tabs.appearance, - --palette--;;frames, - --palette--;;appearanceLinks, - --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:language, - --palette--;;language, - --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:access, - --palette--;;hidden, - --palette--;;access, - --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:categories, - categories, - --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:notes, - rowDescription, - --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:extended, -'; + $GLOBALS['TCA']['tt_content']['types'][$containerConfiguration->getCType()]['showitem'] = + 'header;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:header.ALT.div_formlabel'; $GLOBALS['TCA']['tt_content']['containerConfiguration'][$containerConfiguration->getCType()] = $containerConfiguration->toArray(); } diff --git a/README.md b/README.md index ed516aea..fb0c27f3 100644 --- a/README.md +++ b/README.md @@ -88,7 +88,7 @@ __Notes:__ - Adds CType to TCA select items - Registers your icon - Adds PageTSconfig - - Sets ``showitem`` for this CType (`sys_language_uid,CType,tx_container_parent,colPos,hidden`) + - Sets ``showitem`` for this CType (`header`) - Saves the configuration in TCA in ``$GLOBALS['TCA']['tt_content']['containerConfiguration'][]`` for further usage - We provide some default icons you can use; see `Resources/Public/Icons` - container-1col