Bug #71086
closed
Inheritance of backend layouts do not work correctly
Added by Wolfgang Wagner about 9 years ago.
Updated about 7 years ago.
Sprint Focus:
Stabilization Sprint
Description
The field "Backend Layout (subpages of this page)" affects also the current page, if the field "Backend Layout (this page only)" is not set. This behaviour is IMHO not correct and it was not the case in previous versions.
(noticed in the current TYPO3 Master)
Files
- Category set to Backend API
- Target version set to 7 LTS
- Is Regression changed from No to Yes
- Sprint Focus set to Stabilization Sprint
I guess this is due to the usage of
foreach ($tsfe->rootLine as $rootLinePage)
in ContentObjectRenderer. Since the rootline includes the current page as well, we have to make sure to exclude that from the slide.
From
\TYPO3\CMS\Backend\View\BackendLayoutView::getSelectedCombinedIdentifier
$rootLine = $this->getRootLine($pageId);
// Remove first and last element (current and root page)
array_shift($rootLine);
array_pop($rootLine);
foreach ($rootLine as $rootLinePage) {
So this is actually done there, but FE rendering is not consistent. typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php:5951
- Status changed from New to Under Review
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
- Status changed from Resolved to Closed
Also available in: Atom
PDF