FlexFormProcessor¶
TYPO3 offers FlexForms which can be used to store
data within an XML structure inside a single database column. The data processor
\TYPO3\CMS\Frontend\DataProcessing\FlexFormProcessor
converts the
FlexForm data of a given field into a Fluid-readable array.
Options¶
fieldname¶
as¶
Examples¶
Example of a minimal TypoScript configuration¶
10 = TYPO3\CMS\Frontend\DataProcessing\FlexFormProcessor
Copied!
The converted array can be accessed within the Fluid template with the
{flexFormData}
variable.
Example of an advanced TypoScript configuration¶
10 = TYPO3\CMS\Frontend\DataProcessing\FlexFormProcessor
10 {
fieldName = my_flexform_field
as = myOutputVariable
}
Copied!
The converted array can be accessed within the Fluid template with the
{myOutputVariable}
variable.
Example with a custom sub-processor¶
10 = TYPO3\CMS\Frontend\DataProcessing\FlexFormProcessor
10 {
fieldName = my_flexform_field
as = myOutputVariable
dataProcessing {
10 = Vendor\MyExtension\DataProcessing\CustomFlexFormProcessor
}
}
Copied!