internal_type

internal_type

internal_type
Path

$GLOBALS['TCA'][$table]['columns'][$field]['config']

Required

false

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

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

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!

Internal type folder

EXT:styleguide/Configuration/TCA/tx_styleguide_elements_group.php
[
    'columns' => [
        'group_folder_1' => [
            'exclude' => 1,
            'label' => 'group_folder_1 desription',
            'description' => 'field description',
            'config' => [
                'type' => 'group',
                'internal_type' => 'folder',
            ],
        ],
    ],
]
Copied!