#92903Add ability to use FlexForm fields in TCA showitems
Description
It would be great to be able to arrange FlexForm fields in the editor interface as if they would be ordinary TCA columns.
This would remedy a disadvantage of FlexForms (limited backend interface possiblities) while keeping its advantage (a “simple” structured value store within only 1 database column).
This would make it possible to add FlexForm fields to their semantically correct place or mix them into a palette with existing fields.
A use case could be a plugin that allows selection of an output template – this field would be more suited near the existing “Layout” tab/palette than inside an arbitrary section “Plugin Data [pi_flexform]”.
return [
'types' => [
'0' => [
'showitem' => '
--div--;the whole flexform,
flex_column,
--div--;a single field,
flex_column.sDEF.input_1,
--div--;palette,
--palette--;;palette_1
'
],
],
'palettes' => [
'palette_1' => [
'label' => 'palette_1',
'showitem' => 'header, flex_column.sDEF.input_1',
],
],
'columns' => [
'flex_column' => [
'label' => 'FlexForm',
'description' => 'field description',
'config' => [
'type' => 'flex',
'ds' => [
'default' => '
<T3DataStructure>
<ROOT>
<sheets>
<sDEF>
<el>
<input_1>
<TCEforms>
<label>input_1</label>
<config>
<type>input</type>
</config>
</TCEforms>
</input_1>
</el>
</sDEF>
<sheets>
</ROOT>
</T3DataStructure>'
],
],
]
];