fieldControl

The field of type group can enable all common field control options. Furthermore the following are available:

elementBrowser
Path

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

type

array

Scope

fieldControl

Types

group

The element browser field control used in type='group' renders a button to open an element browser depending on the selected internal_type. It is enabled by default if rendering a group element.

insertClipboard
Path

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

type

array

Scope

fieldControl

Types

group

The clipboard control adds a control button for type='group' to paste records from a users clipboard into the selection. It is enabled by default for type='group' and shown below the element browser if the order has not been changed using the before and after keywords. It can be turned off by setting disabled to true, just like any other fieldControl.

Examples

Group field with element browser enabled

EXT:styleguide/Configuration/TCA/tx_styleguide_elements_group.php
[
    'columns' => [
        'group_db_1' => [
            'exclude' => 1,
            'label' => 'group_db_1 allowed=be_users,be_groups description',
            'description' => 'field description',
            'config' => [
                'type' => 'group',
                'allowed' => 'be_users,be_groups',
                'fieldControl' => [
                    'editPopup' => [
                        'disabled' => false,
                    ],
                    'addRecord' => [
                        'disabled' => false,
                    ],
                    'listModule' => [
                        'disabled' => false,
                    ],
                ],
            ],
        ],
    ],
]
Copied!

Group field with element browser disabled

The element browser control can be disabled by setting disabled = true:

EXT:styleguide/Configuration/TCA/tx_styleguide_elements_group.php
[
    'columns' => [
        'group_db_3' => [
            'exclude' => 1,
            'label' => 'group_db_3 allowed=tx_styleguide_staticdata, disabled elementBrowser',
            'config' => [
                'type' => 'group',
                'allowed' => 'tx_styleguide_staticdata',
                'fieldControl' => [
                    'elementBrowser' => [
                        'disabled' => true,
                    ],
                ],
            ],
        ],
    ],
]
Copied!