Project

General

Profile

Actions

Feature #47588

closed

Add conditions support in backend layouts

Added by Alexey Gafiulov over 11 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2013-04-25
Due date:
% Done:

100%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:

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);

Actions

Also available in: Atom PDF