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".

In TYPO3 v12

In v12 you have to add a group with page TSconfig.

EXT:my_package/Configuration/page.tsconfig
mod.wizards.newContentElement.wizardItems {
    my_group {
        header = LLL:EXT:my_package/Resources/Private/Language/Backend.xlf:content_group.my_group
        before: common
    }
}
Copied!

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.

EXT:my_package/Configuration/TCA/Overrides/tt_content.php
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTcaSelectItemGroup(
    'tt_content',
    'CType',
    'my_group',
    'My group label or LLL:EXT reference',
    'before:default',
);
Copied!