Attention
TYPO3 v11 has reached end-of-life as of October 31th 2024 and is no longer being maintained. Use the version switcher on the top left of this page to select documentation for a supported version of TYPO3.
Need more time before upgrading? You can purchase Extended Long Term Support (ELTS) for TYPO3 v10 here: TYPO3 ELTS.
fieldControl
The field of type group can enable all common field control options. Furthermore the following are available:
elementBrowser
-
- Type
- array
- Path
- $GLOBALS['TCA'][$table]['columns'][$field]['config']['fieldControl']
- Scope
- fieldControl
- Types
- group
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
-
- 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' => [
'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,
],
],
],
],
],
]
Group field with element browser disabled
The element browser control can be disabled by setting disabled = true
:
[
'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,
],
],
],
],
],
]