Actions
Bug #103532
openUsing TSconfig TCEFORM to change existing flexform field configuration does not work
Status:
Under Review
Priority:
Should have
Assignee:
-
Category:
FormEngine aka TCEforms
Target version:
Start date:
2024-04-04
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
12
PHP Version:
8.1
Tags:
tsconfig tceform flexform
Complexity:
easy
Is Regression:
No
Sprint Focus:
Description
You can use TSconfig TCEFORM to change attributes of flexform fields via:
TCEFORM.tx_styleguide_flex.flex_file_1.default.sDEF.input_1.label = Override Label
However, you can not change the "config" section of a field, for example to add a enableRichtext attribute, or change the rows/cols of an input. This is currently only possible to change for main-level fields like "tt_content.header", but not for flexform fields:
TCEFORM.tx_styleguide_flex.flex_file_1.default.sDEF.input_1.config.max = 30
TCEFORM.tx_styleguide_flex.flex_file_1.default.sDEF.input_1.config.size = 5
You can already use PSR-14 events (AfterFlexFormDataStructureParsedEvent) to modify a flexform, but this is a bit more complicated than just using TSconfig. So I'd argue that setting it via TSconfig should be possible.
Actions