Bug #80871

Problem with condition [page|backend_layout = <value>] when inherited

Added by Benjamin Hirsch over 4 years ago. Updated 8 months ago.

Should have
Target version:
Start date:
Due date:
% Done:


Estimated time:
TYPO3 Version:
PHP Version:
Is Regression:
Sprint Focus:


When I use a inherited backend layout, the condition [page|backend_layout = <value>] does not work, because the actual field for this page is empty and it seams that inheritance isn't respected in this case.

[page|backend_layout = pagets__standard] AND [globalVar = GP:colPos==0]
...show specific elements in mod.wizards

As you can see in the attachment, the backend layouts are set for the current and the subpages. Everything is working as expected (the backend layout is used and displayed correctly in the backend), but the condition does not work.


parent-page-settings.JPG (19.9 KB) parent-page-settings.JPG Benjamin Hirsch, 2017-04-18 10:15

Updated by Georg Ringer over 4 years ago

  • Status changed from New to Closed

With this condition you are just checking for the current page row. you would need to check backend_layout_next_level
as well.
you can also build conditions see https://docs.typo3.org/typo3cms/TyposcriptReference/Conditions/Reference/Index.html#userfunc

However take a look at
https://wiki.typo3.org/TYPO3.CMS/Releases/7.5/Feature#Feature:_.2369602_-_Simplify_handling_of_backend_layouts_in_frontend which might simplfy what you want to achieve.


Updated by Benjamin Hirsch over 4 years ago

Thank you Georg. But wouldn't it be logical, that when a subpage which has not explicitly set a backend layout, that in this case the inherited value should be used? Then this is not the case.


Updated by Georg Ringer over 4 years ago

no as with page you just ask for the current page


Updated by Ben Robinson 8 months ago

The desired condition is available in a similar form from TYPO3 11 onwards

[tree.pagelayout == "pagets__Home"]
    page.1 = TEXT
    page.1.value = Layout Home

Also available in: Atom PDF