Bug #61507
closed
wrong definition of pi_flexform/ds/ key for media
Added by Wolfgang Klinger about 10 years ago.
Updated about 6 years ago.
Description
I think there's a small bug in
typo3/sysext/frontend/Configuration/TCA/tt_content.php
even though it works most of the time, I had the problem that the media flexform suddenly disappeared in the backend (while the frontend output still worked)
and only the default flexform was visible
(I think the problem is, that list_type is defined as varchar, but the default value is '0' and not an empty string,
so the code in getFlexFormDS (see below) checks for „0,media“ and not „,media“)
IS:
$TCA['tt_content']['columns']['pi_flexform']['config']['ds'][',media']
SHOULD BE:
$TCA['tt_content']['columns']['pi_flexform']['config']['ds']['*,media']
see code in \TYPO3\CMS\Backend\Utility\BackendUtility::getFlexFormDS
Can confirm the problem
AND the solution.
Could please someone get this fix into the next release?
Thanks G
- Description updated (diff)
Still present in 6.2.14: the file typo3/sysext/frontend/Configuration/TCA/tt_content.php contains the lines:
'pi_flexform' => array(
'l10n_display' => 'hideDiff',
'label' => 'LLL:EXT:cms/locallang_ttc.xlf:pi_flexform',
'config' => array(
'type' => 'flex',
'ds_pointerField' => 'list_type,CType',
'ds' => array(
'default' => '
<T3DataStructure>
<ROOT>
<type>array</type>
<el>
<!-- Repeat an element like "xmlTitle" beneath for as many elements you like. Remember to name them uniquely -->
<xmlTitle>
<TCEforms>
<label>The Title:</label>
<config>
<type>input</type>
<size>48</size>
</config>
</TCEforms>
</xmlTitle>
</el>
</ROOT>
</T3DataStructure>
',
',media' => file_get_contents(\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('cms') . 'flexform_media.xml')
),
'search' => array(
'andWhere' => 'CType=\'list\''
)
)
),
Fixed in version 7 (latest master)
- Status changed from New to Resolved
Resolved in v7. I encourage you to update. This change was a bit bigger than a few lines, that's why we did not backport it to 6.2. Also have a look at EXT:mediace in v7.
- Status changed from Resolved to Closed
Also available in: Atom
PDF