label

label
Type
string (field name)
Path
$GLOBALS['TCA'][$table]['ctrl']
Scope
Display

Required!

Points to the field name of the table which should be used as the "title" when the record is displayed in the system.

A simple example

A minimal example of the control section
EXT:styleguide/Configuration/TCA/tx_styleguide_ctrl_minimal.php
[
    'ctrl' => [
        'title' => 'LLL:EXT:styleguide/Resources/Private/Language/locallang.xlf:minimalTableTitle',
        'label' => 'title',
        'iconfile' => 'EXT:styleguide/Resources/Public/Icons/tx_styleguide.svg',
        'security' => [
            'ignorePageTypeRestriction' => true,
        ],
    ],
    'columns' => [
        'title' => [
            'label' => 'LLL:EXT:styleguide/Resources/Private/Language/locallang.xlf:minimalTableTitleField',
            'config' => [
                'type' => 'input',
            ],
        ],
    ],
    'types' => [
        [
            'showitem' => 'title',
        ],
    ],
]
Copied!