Project

General

Profile

Actions

Bug #98044

closed

TypoScript conditions for tree.pagelayout do not work correctly

Added by Nikita Hovratov over 2 years ago. Updated about 2 years ago.

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.


Related issues 5 (0 open5 closed)

Related to TYPO3 Core - Feature #88276: Provide pagelayout in TypoScript ConditionClosed2019-05-06

Actions
Related to TYPO3 Core - Task #97963: Avoid using TemplateService->rootLineClosed2022-07-17

Actions
Related to TYPO3 Core - Bug #98571: Set correct TSFE->config['rootLine']Closed2022-10-11

Actions
Related to TYPO3 Core - Bug #100764: TS condition does not workClosed2023-04-26

Actions
Related to TYPO3 Core - Bug #102268: TypoScript conditions for tree.pagelayout do not work correctly on page level 1Closed2023-10-27

Actions
Actions

Also available in: Atom PDF