Attention
TYPO3 v11 has reached end-of-life as of October 31th 2024 and is no longer being maintained. Use the version switcher on the top left of this page to select documentation for a supported version of TYPO3.
Need more time before upgrading? You can purchase Extended Long Term Support (ELTS) for TYPO3 v10 here: TYPO3 ELTS.
Examples
Group relation to a single page

EXT:styleguide/Configuration/TCA/tx_styleguide_elements_group.php
[
'columns' => [
'group_db_10' => [
'exclude' => 1,
'label' => 'group_db_10 allowed=pages size=1',
'config' => [
'type' => 'group',
'allowed' => 'pages',
'maxitems' => 1,
'minitems' => 0,
'size' => 1,
'suggestOptions' => [
'default' => [
'additionalSearchFields' => 'nav_title, alias, url',
'addWhere' => 'AND pages.doktype = 1',
],
],
],
],
],
]
Copied!
Group relation to be_groups and be_users

EXT:styleguide/Configuration/TCA/tx_styleguide_elements_group.php
[
'columns' => [
'group_db_1' => [
'exclude' => 1,
'label' => 'group_db_1 allowed=be_users,be_groups description',
'description' => 'field description',
'config' => [
'type' => 'group',
'allowed' => 'be_users,be_groups',
'fieldControl' => [
'editPopup' => [
'disabled' => false,
],
'addRecord' => [
'disabled' => false,
],
'listModule' => [
'disabled' => false,
],
],
],
],
],
]
Copied!