I have a couple of problem with Wayfinder.
I have a menu with sub pages (3 level)
I should my first level only on the top of the page
Accueil - Séance Individuelle - Cours et Séances - L’Atelier - Evénements
Below, and at left side of the content, I want to display the level 2 and 3 only.
I added Wayfinder as the following:
[[!Wayfinder? &startId=`[[*id]]` &level=`2` &rowTpl=`rowTpl` &outerClass=`navbar-nav` &levelClass=`nav-item` &hideSubMenus=`0` &hereClass]]
It’s nice, but it does not works fine.
If I click on “Séance Individulle”, it catch the ID of that page and print all sub pages of “Séance Individuelle”.
If I click on one of the subpage of “Séance Individuelle”, the sub menu disepear, which sound logic, as
will get the ID of the select page,
My question is how can I make sure that
always get the ID of the first level item of the selected submenu, whatever if I click on the 2nd of 3rd level
For example, if I click on the submenu of “Scéance Individuelle”, I alway need to gte the ID of “Séance Individulle”
If I click on the sub-sub-menu of “L’atelier”, I alway get the id of “L’Atelier”.
I do not understand how getRessource can help?
findParent, look like to search for a parent if I inform a title, but I always want to have the first level parent, wathever the tile (title can change)