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);
Updated by Gerrit Code Review about 11 years ago
- Status changed from New to Under Review
Patch set 1 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/23657
Updated by Philipp Gampe about 11 years ago
Code sample
backend_layout { colCount = 2 rowCount = 1 rows { 1 { columns { 1 { name = Main colPos = 0 } 2 { name = right colPos = 1 } } } } } ##### put your own page here ;) ######### [PIDupinRootline = 509] backend_layout.rows.1.columns.2 > [GLOBAL]
Updated by Gerrit Code Review about 11 years ago
Patch set 1 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/23697
Updated by Anonymous about 11 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 7d435b507cc3eaa74d4e0dd084dd44b39fb53efd.