Skip to content

Commit

Permalink
Restoring the dropdown for "settings.eventRecstriction" in the backend
Browse files Browse the repository at this point in the history
Contrary to some instructions on the web, extending Flexform fields for version 11 does not include an additional definition of `<TCEforms></TCEforms>` within an element.
See: https://docs.typo3.org/p/georgringer/news/11.1/en-us/Tutorials/ExtendNews/ExtendFlexforms/Index.html

By removing this element, the flexform field will be displayed correctly again in the backend of TYPO3 v11.
  • Loading branch information
stephankellermayr authored and georgringer committed Aug 21, 2023
1 parent 642391c commit c333137
Showing 1 changed file with 24 additions and 26 deletions.
50 changes: 24 additions & 26 deletions Configuration/Flexforms/flexform_eventnews.xml
Expand Up @@ -6,32 +6,30 @@
<type>array</type>
<el>
<settings.eventRestriction>
<TCEforms>
<label>LLL:EXT:eventnews/Resources/Private/Language/locallang.xlf:flexforms_general.eventRestriction</label>
<config>
<type>select</type>
<renderType>selectSingle</renderType>
<items>
<numIndex index="0" type="array">
<numIndex index="0">LLL:EXT:eventnews/Resources/Private/Language/locallang.xlf:flexforms_general.fallback</numIndex>
<numIndex index="1"></numIndex>
</numIndex>
<numIndex index="1" type="array">
<numIndex index="0">LLL:EXT:news/Resources/Private/Language/locallang_be.xlf:flexforms_general.no-constraint</numIndex>
<numIndex index="1">3</numIndex>
</numIndex>
<numIndex index="2">
<numIndex index="0">LLL:EXT:eventnews/Resources/Private/Language/locallang.xlf:flexforms_general.eventRestriction.1</numIndex>
<numIndex index="1">1</numIndex>
</numIndex>
<numIndex index="3">
<numIndex index="0">LLL:EXT:eventnews/Resources/Private/Language/locallang.xlf:flexforms_general.eventRestriction.2</numIndex>
<numIndex index="1">2</numIndex>
</numIndex>
</items>
</config>
</TCEforms>
<label>LLL:EXT:eventnews/Resources/Private/Language/locallang.xlf:flexforms_general.eventRestriction</label>
<config>
<type>select</type>
<renderType>selectSingle</renderType>
<items>
<numIndex index="0" type="array">
<numIndex index="0">LLL:EXT:eventnews/Resources/Private/Language/locallang.xlf:flexforms_general.fallback</numIndex>
<numIndex index="1"></numIndex>
</numIndex>
<numIndex index="1" type="array">
<numIndex index="0">LLL:EXT:news/Resources/Private/Language/locallang_be.xlf:flexforms_general.no-constraint</numIndex>
<numIndex index="1">3</numIndex>
</numIndex>
<numIndex index="2">
<numIndex index="0">LLL:EXT:eventnews/Resources/Private/Language/locallang.xlf:flexforms_general.eventRestriction.1</numIndex>
<numIndex index="1">1</numIndex>
</numIndex>
<numIndex index="3">
<numIndex index="0">LLL:EXT:eventnews/Resources/Private/Language/locallang.xlf:flexforms_general.eventRestriction.2</numIndex>
<numIndex index="1">2</numIndex>
</numIndex>
</items>
</config>
</settings.eventRestriction>
</el>
</ROOT>
</extra>
</extra>

1 comment on commit c333137

@liayn
Copy link

@liayn liayn commented on c333137 Sep 18, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This causes issues in other flexform related processing: georgringer/news#2173

Please sign in to comment.