Bug #98044
closedTypoScript conditions for tree.pagelayout do not work correctly
100%
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.
Updated by Gerrit Code Review over 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
Updated by Gerrit Code Review over 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
Updated by Gerrit Code Review over 2 years 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
Updated by Simon Schaufelberger over 2 years ago
- Related to Feature #88276: Provide pagelayout in TypoScript Condition added
Updated by Gerrit Code Review over 2 years 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
Updated by Christian Kuhn over 2 years ago
- Related to Task #97963: Avoid using TemplateService->rootLine added
Updated by Gerrit Code Review over 2 years 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
Updated by Gerrit Code Review over 2 years 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
Updated by Gerrit Code Review over 2 years 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
Updated by Gerrit Code Review over 2 years 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
Updated by Nikita Hovratov over 2 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 0303a9c1bd0db064f254539fb32d4d21065138a0.
Updated by Christian Kuhn about 2 years ago
- Related to Bug #98571: Set correct TSFE->config['rootLine'] added
Updated by Christian Kuhn over 1 year ago
- Related to Bug #100764: TS condition does not work added
Updated by Christian Kuhn 10 months ago
- Related to Bug #102268: TypoScript conditions for tree.pagelayout do not work correctly on page level 1 added