[TYPO3-english] Using DisplayCond in flexform on "settings.xxx" fields

Daniël van der Weerd d_vanderweerd at hotmail.com
Wed Apr 9 14:44:13 CEST 2014


I'm trying to add a DisplayCond to a flexform sheet, on a field that has a dot in its name:

<displayCond>FIELD:main.settings.mySetting:=:1</displayCond>

This isn't working. Doing some research in core code (v6.1.7), I found the reason in TYPO3\CMS\Backend\Form\FormEngine line 2675:

case 'FIELD':
		list($sheetName, $fieldName) = \TYPO3\CMS\Core\Utility\GeneralUtility::trimExplode('.', $splittedCondition[1]);

Since the condition is exploded by a dot delimiter, the field 'settings.mySetting' will become 'settings', which is obviously not what I intend.

How to achieve the desired result?


More information about the TYPO3-english mailing list