Bug #73133
closedWrong behaviour of "backend_layout_next_level"
0%
Description
Backend layout set in "backend_layout_next_level" is taken for current page if "backend_layout" is not set (inheritace not working).
Files
Updated by Philipp Gampe almost 9 years ago
- Status changed from New to Needs Feedback
I do not understand you problem.
What do you expect and what happens instead?
The backend layout for next level is always taken as fallback and inherited, unless there is an explicit backend layout for the current page.
Updated by Gerhard Rupp almost 9 years ago
In my opinion the page should inherit the backend layout of pages of higher levels. Setting for "backend_layout_next_level" should only be taken into account for pages below.
Updated by Riccardo De Contardi almost 9 years ago
- File cattura.png cattura.png added
Let me see if I have understood:
The scenario is similar to the one I wrote on the attached image Cattura.png (the pages are nested, so 2 is child of 1 and so forth)
the expected result for page 3 is "B", but instead you got "C"? Am I right?
Updated by Jo Hasenau almost 9 years ago
Just to clarify the intended behaviour:
- The field "backend_layout" is not inherited at all but only marks the specific backend layout of a certain page.
- The field "backend_layout_next_level" is inherited from parent pages.
- Any value > 0 for "backend_layout_next_level" will override possible inherited values of the parent page so pages below will behave differently.
- Any value > 0 for "backend_layout" will override the inherited backend_layout_next_level of a parent page, but only for that particular page.
So cattura.png shows the intended behaviour, except 4), which is not in the picture.
Updated by Jo Hasenau almost 9 years ago
Added 4 to the scenarios, which is case D for page 2.
Updated by Gerhard Rupp almost 9 years ago
Is it reasonable to not inheritate "backend_layout"?
Therefore setting "backend_layout" at the root page would have no effect for all following pages.
Updated by Jo Hasenau almost 9 years ago
Yes it is, since this way makes sure you can override inherited values for single pages.
If backend_layout itself would be inherited too, you would have to repeat the actually inherited backend_layout_next_level setting even when it did not change at all.
So if you want all pages to have the same backend layout, you have to set both fields of the root page.
Ohterwise subpages will get the default layout.
Updated by Gerhard Rupp almost 9 years ago
OK.
But for TYPO3 6.2.17 page 3 does not behave as expected.
Result is "C" instead of "B".
Updated by Jo Hasenau almost 9 years ago
Checked that with 6.2.17 and for me it seems to work.
Could you make a table showing the relevant part of your page tree and the settings for both fields as well as the result?
Updated by Gerhard Rupp almost 9 years ago
This is my configuration (backend_layout / backend_layout_next_level) - TYPO3 6.2.17
homepage (layout_1 / layout_1) -> layout_1 (OK) level_1_page (<not_set> / <not_set>) -> layout_1 (OK) level_2_page (<not_set> / layout_2) -> layout_2 (should be layout_1) level_3_page (<not_set> / <not_set>) -> layout_2 (OK)
Updated by Alexander Opitz over 8 years ago
- Status changed from Needs Feedback to New
- Target version changed from 6.2.18 to next-patchlevel
Updated by Riccardo De Contardi over 7 years ago
- File Cattura2.PNG Cattura2.PNG added
- Status changed from New to Closed
- Target version deleted (
next-patchlevel)
@Gerhard Rupp
I am really sorry for the very late answer!
I tried with both 7.6.16 and 8.7-dev (latest master) with the scenario you described in your last comment, which I summarized in Cattura2.png
I am not able to reproduce anymore the problem: on both versions the results are the ones described in column"expected result"
Therefore, I close this issue;
If you think that this is the wrong decision then please reopen it or open a new issue with a reference to this one.
Thank you