fieldControl¶
The field of type group can enable all common field control options. Furthermore the following are available:
- elementBrowser (type => group)¶
- Path
$GLOBALS['TCA'][$table]['columns'][$field]['config']['fieldControl']
- Type
array
- Scope
fieldControl
- Types
The element browser field control used in
type='group'
renders a button to open an element browser. It is enabled by default if rendering a group element.
- insertClipboard (type => group)¶
- Path
$GLOBALS['TCA'][$table]['columns'][$field]['config']['fieldControl']
- Type
array
- Scope
fieldControl
- Types
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 fortype='group'
and shown below the element browser if the order has not been changed using thebefore
andafter
keywords. It can be turned off by settingdisabled
to true, just like any other fieldControl.
Examples¶
Group field with element browser enabled¶

[
'columns' => [
'group_db_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,
],
],
],
],
],
]
Group field with element browser disabled¶
The element browser control can be disabled by setting disabled = true
:

[
'columns' => [
'group_db_3' => [
'label' => 'group_db_3 allowed=tx_styleguide_staticdata, disabled elementBrowser',
'config' => [
'type' => 'group',
'allowed' => 'tx_styleguide_staticdata',
'fieldControl' => [
'elementBrowser' => [
'disabled' => true,
],
],
],
],
],
]