fieldWizard
-
- Type
- array
- TCA path
- $GLOBALS['TCA'][$table]['columns'][$field]['config']['fieldWizard']
- Scope
- Display
- Types
- check, flex, group, imageManipulation, input, radio
Specifies wizards rendered below the main input area of an element. Single type / renderType elements can register default wizards which are merged with this property.
For example, type='check' comes with this default wizards configuration:
EXT:backend/Classes/Form/Element/CheckboxElement.php (excerpt)protected $defaultFieldWizard = [ 'localizationStateSelector' => [ 'renderType' => 'localizationStateSelector', ], 'otherLanguageContent' => [ 'renderType' => 'otherLanguageContent', 'after' => [ 'localizationStateSelector', ], ], 'defaultLanguageDifferences' => [ 'renderType' => 'defaultLanguageDifferences', 'after' => [ 'otherLanguageContent', ], ], ];Copied!This is be merged with the configuration from TCA, if there is any. Below example disables the default
localizationwizard.State Selector EXT:my_extension/Configuration/TCA/tx_myextension_domain_model_something.php<?php return [ 'ctrl' => [ 'title' => 'Something', 'label' => 'a_field', ], 'columns' => [ 'a_field' => [ 'label' => 'A field', 'config' => [ 'type' => 'check', 'fieldWizard' => [ 'localizationStateSelector' => [ 'disabled' => true, ], ], ], ], ], 'types' => [ '0' => [ 'showitem' => 'a_field', ], ], ];It is possible to add own wizards by adding them to the TCA of the according field and pointing to a registered renderType, to resort wizards by overriding the
beforeandafterkeys, to hand over additional options in the optionaloptionsarray to specific wizards, and to disable single wizards using thedisabledkey. Developers should have a look at the FormEngine docs for details.