Project

General

Profile

Actions

Feature #47588

closed

Add conditions support in backend layouts

Added by Alexey Gafiulov almost 11 years ago. Updated over 5 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 #1

Updated by Gerrit Code Review over 10 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

Actions #2

Updated by Philipp Gampe over 10 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]

Actions #3

Updated by Gerrit Code Review over 10 years ago

Patch set 1 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/23697

Actions #4

Updated by Anonymous over 10 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #5

Updated by Benni Mack over 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF