Project

General

Profile

Actions

Bug #98044

closed

TypoScript conditions for tree.pagelayout do not work correctly

Added by Nikita Hovratov almost 2 years ago. Updated over 1 year 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 workResolved2023-04-26

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

Actions
Actions #1

Updated by Gerrit Code Review almost 2 years ago

  • Status changed from New to Under Review

Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/75319

Actions #2

Updated by Gerrit Code Review almost 2 years ago

Patch set 2 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/75319

Actions #3

Updated by Gerrit Code Review over 1 year ago

Patch set 3 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/75319

Actions #4

Updated by Nikita Hovratov over 1 year ago

  • Description updated (diff)
Actions #5

Updated by Nikita Hovratov over 1 year ago

  • Description updated (diff)
Actions #6

Updated by Simon Schaufelberger over 1 year ago

  • Related to Feature #88276: Provide pagelayout in TypoScript Condition added
Actions #7

Updated by Gerrit Code Review over 1 year ago

Patch set 1 for branch 11.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/75444

Actions #8

Updated by Christian Kuhn over 1 year ago

  • Related to Task #97963: Avoid using TemplateService->rootLine added
Actions #9

Updated by Gerrit Code Review over 1 year ago

Patch set 2 for branch 11.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/75444

Actions #10

Updated by Gerrit Code Review over 1 year ago

Patch set 4 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/75319

Actions #11

Updated by Gerrit Code Review over 1 year ago

Patch set 5 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/75319

Actions #12

Updated by Gerrit Code Review over 1 year ago

Patch set 6 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/75319

Actions #13

Updated by Nikita Hovratov over 1 year ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #14

Updated by Benni Mack over 1 year ago

  • Status changed from Resolved to Closed
Actions #15

Updated by Christian Kuhn over 1 year ago

  • Related to Bug #98571: Set correct TSFE->config['rootLine'] added
Actions #16

Updated by Christian Kuhn about 1 year ago

  • Related to Bug #100764: TS condition does not work added
Actions #17

Updated by Christian Kuhn 3 months ago

  • Related to Bug #102268: TypoScript conditions for tree.pagelayout do not work correctly on page level 1 added
Actions

Also available in: Atom PDF