Bug #100937
closedFlexform sections in TCA inline fields are broken
100%
Description
Let's imagine a model with the name quiz
. This quiz has an inline field questions
, which collects items of the model quizquestion
. TCA definition example:
'questions' => [
'label' => '',
'config' => [
'type' => 'inline',
'foreign_table' => 'domain_model_quizquestion',
'foreign_field' => 'quiz',
'foreign_sortby' => 'sorting',
'maxitems' => 9999,
'appearance' => [
'collapseAll' => 0,
'levelLinksPosition' => 'top',
'showSynchronizationLink' => 1,
'showPossibleLocalizationRecords' => 1,
'useSortable' => 1,
'showAllLocalizationLink' => 1
],
],
],
Now the model quizquestion
has a flexform field answers
:
'answers' => [
'label' => '',
'config' => [
'type' => 'flex',
'ds' => [
'default' => 'FILE:EXT:ext/Configuration/FlexForms/Answers.xml',
],
],
],
The flexform has sections:
<T3DataStructure>
<sheets>
<sDEF>
<ROOT>
<type>array</type>
<el>
<answers>
<type>array</type>
<section>1</section>
<el>
<answer>
<type>array</type>
<title>Antwort</title>
<el>
<text>
<label>Text</label>
<config>
<type>string</type>
</config>
</text>
<correct>
<label>Ist korrekt?</label>
<config>
<type>check</type>
<renderType>checkboxToggle</renderType>
</config>
</correct>
</el>
</answer>
</el>
</answers>
</el>
</ROOT>
</sDEF>
</sheets>
</T3DataStructure>
This just won't work in the typo3 form backend. The sad result of this config:
Files
Updated by Nikita Hovratov over 1 year ago
At first glance "TCEforms" is missing inside text and correct.
Updated by Nikita Hovratov over 1 year ago
See: https://docs.typo3.org/m/typo3/reference-tca/11.5/en-us/ColumnsConfig/Type/Flex/Properties/Ds.html
It has been removed and deprecated since TYPO3 v12: https://docs.typo3.org/c/typo3/cms-core/main/en-us/Changelog/12.0/Deprecation-97126-TCEformsRemovedInFlexForm.html
Updated by jku jku about 1 year ago
I have this problem too and no work around. I guess it's a problem with the gui. The flexform containers use the same generated ids.
Updated by Georg Ringer 4 months ago
- Related to Bug #97042: Flexforms with mutliple sheets with same section names are not working anymore added
Updated by Gerrit Code Review 4 months ago
- Status changed from New to Under Review
Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/85189
Updated by Gerrit Code Review 4 months ago
Patch set 2 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/85189
Updated by Gerrit Code Review 4 months ago
Patch set 3 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/85189
Updated by Gerrit Code Review 4 months ago
Patch set 1 for branch 12.4 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/85230
Updated by Georg Ringer 4 months ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset b7a3308b1435df05351ed71d10d7ec35d9ad6770.
Updated by Oliver Bartsch 24 days ago
- Related to Bug #105492: ext:styleguide in v12 added