Typo3 8 – TCA select with too many options

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
    )
),

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.