Adding new groups¶
There are two types of groups. One is for the NewContentElementWizard. This is where you can select Content Elements from a module with tab navigation. Each tab item is a group. This is the group, which you define in the YAML config.
The second type is the one in the type selector box. Also called record type
selector. The select items are grouped there with TCA itemGroups
. The
v12 version of Content Blocks hard-codes this group to "Content Blocks".
Note
In TYPO3 v13 these two groups are unified. Defining the second type will automatically register the first type.
In TYPO3 v12¶
In v12 you have to add a group with page TSconfig.
mod.wizards.newContentElement.wizardItems {
my_group {
header = LLL:EXT:my_package/Resources/Private/Language/Backend.xlf:content_group.my_group
before: common
}
}
Now you can assign the new group my_group
to the YAML
group
option.
In TYPO3 v13¶
In v13 you need to register the group via PHP API. This will add a new group both for the NewContentElementWizard and the type selector box.
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTcaSelectItemGroup(
'tt_content',
'CType',
'my_group',
'My group label or LLL:EXT reference',
'before:default',
);