Actions
Bug #98044
closedTypoScript conditions for tree.pagelayout do not work correctly
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
TypoScript
Target version:
-
Start date:
2022-07-28
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
12
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
The pagelayout is not resolved correctly.
To recreate, create a rootline with 4 pages like this:
$rootLine = [ [ 'backend_layout_next_level' => '', // TypoScript root template page ], [ 'backend_layout_next_level' => 'pagets__default', ], [ 'backend_layout_next_level' => 'pagets__article', ], [ 'backend_layout_next_level' => '', // Current page ], ];
Add the condition:
[tree.pagelayout == "pagets__article"] page.10 = TEXT page.10.value = It works! [else] page.10 = TEXT page.10.value = It doesn't work :( [end]
Open the deepest page. It doesn't work.
Actions