Feature #47588
closedAdd conditions support in backend layouts
100%
Description
At a moment backend layouts are parsing with TypoScript parser, but ignore any conditions.
Support could be added by changing file typo3/sysext/backend/Classes/View/PageLayoutView.php around lines 527-529
from:
// Initialize TS parser to parse config to array
$parser = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\TypoScript\\Parser\\TypoScriptParser');
$parser->parse($backendLayoutRecord['config']);
to:
// Initialize TS parser to parse config to array
$parser = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\TypoScript\\Parser\\TypoScriptParser');
$conditionMatcher = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Configuration\\TypoScript\\ConditionMatching\\ConditionMatcher');
$parser->parse($backendLayoutRecord['config'], $conditionMatcher);