internal_type

internal_type
Required:true
Type:string
Scope:Display / Proc.
Default:db

Configures the internal type of the group type of the element. There are two possible options to choose from:

folder
This will create a field where folders can be attached to the record.
db
This will create a field where database records can be attached as references. As it is the default it can be ommitted.

There is no default value, the property is required.

Deprecated since version 9.5: The internal types file and file_reference have been deprecated with TYPO3 9 and removed with TYPO3 10. Extensions that used group fields with these internal types should switch to use FAL references based on type=inline instead.

Examples

Internal type db- group relation to a single page

../../../../_images/GroupDb10.png
'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',
                ],
            ],
        ],
    ],
]

Internal type folder

../../../../_images/GroupFolder1.png
'columns' => [
    'group_folder_1' => [
        'exclude' => 1,
        'label' => 'group_folder_1 desription',
        'description' => 'field description',
        'config' => [
            'type' => 'group',
            'internal_type' => 'folder',
        ],
    ],
]