Hi,
one of the websites I’m working on has a structure where the main menu items have sub-items that are not always real post-children. On the landing page of the main menu-items, I want to show a navigation menu that holds only the pages that are sub-items in the menu.
For example:
Let’s say the menu as main items A, B and C.
Main menu item A has pages X and Y as sub-items. X and Y are not children of A, they are children of B.
Main menu item B has pages X and Z as sub-items. X is a child of B, Z is a child of C.
Main menu item C has pages Y and Z as sub-items. Y is a child of B, Z is a child of C.
When clicking on main menu item A, and not on a sub-item, I want to show a page which shows navigation to go to page X and Y. Thus, the two pages that in the menu are sub-items of A.
Is there a smart way to achieve this, perhaps using looping providers?