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.
subtype_value_field
subtype_value_field
-
- Type
- string (field name)
- Path
- $GLOBALS['TCA'][$table]['types'][$type]
Field name, which holds a value being a key in the subtypes_excludelist array. This allows to add and hide fields found in the types configuration, based on the value of another field in the row.
Examples
'subtype_value_field' => 'list_type',
'subtypes_excludelist' => [
'2' => 'layout',
'3' => 'layout',
'5' => 'layout',
...
'21' => 'layout'
],
Copied!
Above example removes the 'layout' field from the 'types' definition if field 'list_type' is set to '2', '3' and so forth.