Issue Bug Closed

#98044TypoScript conditions for tree.pagelayout do not work correctly

Nikita Hovratov 07/28/22, 11:44 updated 10/04/22, 08:53

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.

Reviews 5