I have a page structure like this:
Page 1
|-Page 1.1
| |-Page 1.1.1
| |-Page 1.1.2
|-Page 1.2
| |-Page 1.2.1
| |-Page 1.2.2
Page2
etc.
I have 2 menus for this structure:
For example, when I am on page 1.1 of 1.1.1 or 1.1.2, the top menu should contain 1.1.1 and 1.1.2.
To create the top menu, I need to get the page id for level 2 from rootline. Is there a way to get it in typoscript?
How I understand your question you can just set the entry level for topmenu:
entryLevel = 1
Page 1 should be 0 in this example, so when you set the entry level to 1 for topmenu I think you should get the result you are looking for. (Or I'm missing something in the question)
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments