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.
exclusiveKeys
exclusiveKeys
-
- Type
- string (list of)
- Path
- $GLOBALS['TCA'][$table]['columns'][$field]['config']
- Scope
- Display / Proc.
- RenderType
- all
List of keys that exclude any other keys in a select box where multiple items could be selected.
Note
The property exclusive
is not available for all select types,
only for the renderTypes selectMultipleSideBySide and selectTree.
Examples
Side-by-side select with two exclusive items
[
'columns' => [
'select_multiplesidebyside_2' => [
'exclude' => 1,
'label' => 'select_multiplesidebyside_2 exclusiveKeys=1,2',
'config' => [
'type' => 'select',
'renderType' => 'selectMultipleSideBySide',
'items' => [
[
'two exclusive items',
'--div--',
],
[
'foo 1',
1,
],
[
'foo 2',
2,
],
[
'casual multiple items',
'--div--',
],
[
'foo 3',
3,
],
[
'foo 4',
4,
],
[
'foo 5',
5,
],
[
'foo 6',
6,
],
],
'multiple' => true,
'exclusiveKeys' => '1,2',
],
],
],
]
Copied!