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

EXT:frontend/Configuration/TCA/tt_content.php (Excerpt)
'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.