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.
FlexFormProcessor
TYPO3 offers FlexForms which can be used to store
data within an XML structure inside a single database column. The data processor
\TYPO3\
converts the
FlexForm data of a given field into a Fluid-readable array.
Options
fieldname
fieldname
-
- Type
- string
- Required
- false
- Default
- 'pi_flexform'
Field name of the column the FlexForm data is stored in.
as
as
-
- Type
- string
- Required
- false
- Default
- 'flexFormData'
Name for the variable in the Fluid template.
Examples
Example of a minimal TypoScript configuration
10 = TYPO3\CMS\Frontend\DataProcessing\FlexFormProcessor
The converted array can be accessed within the Fluid template with the
{flex
variable.
Example of an advanced TypoScript configuration
10 = TYPO3\CMS\Frontend\DataProcessing\FlexFormProcessor
10 {
fieldName = my_flexform_field
as = myOutputVariable
}
The converted array can be accessed within the Fluid template with the
{my
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
}
}