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