Review main Abandoned

81595[BUGFIX] Correct tree.pagelayout condition evaluation on page level 1

Stig Nørgaard Færch CR 0 V 0 Easy +1 −0 updated 02/06/24, 15:01

Commit message

In the context of TypoScript the ContentObjectRenderer and the
ConditionMatcher make use of the getLayoutForPage method to find the
correct layout of the current page. Unfortunately, regarding page level 1,
this only works correctly for the ContentObjectRenderer (type
getText:pagelayout). In the context of the ConditionMatcher, the layout
will not be found from the root level field backend_layout_next_level.

In this method, the rootline is used to determin the pages to find the
backend_layout_next_level from, starting with the closest parent page, but
not the current page itself.
This fix ensures that the current page will be removed from the rootline,
and not the root page.

Review

  • Code review CR 0

    Imported before Forger kept the single votes, the next import adds them.

  • Verified V 0

    Imported before Forger kept the single votes, the next import adds them.

Issues 1

Files 1