Typo3 8 - TCA select with too many options


February 20, 2018 at 09:45
Typo3

Via TCA I wanted to create a select for fe_users within another entity. Unfortunately fe_users has quite a lot of entries in this case and therefore loading was a pain when trying to edit an entry. But type => group is a good alternative:
'user' => array(
    'exclude' => 0,
    'label' => 'User',
    'config' => array(
        'type' => 'group',
        'internal_type' => 'db',
        'allowed' => 'fe_users',
        'items' => array(
            array('', 0),
        ),
        'behaviour' => [
            'enableCascadingDelete' => 0,
        ],
        'maxitems' => 1
    )
),

Hinterlasse einen Kommentar:
Search