Let's say I have this menu structure:
First Container
-- Inner Doc 1
-- Inner Doc 2
Second Container
-- Inner Doc 3
-- Inner Doc 4
-- Inner Doc 5
I want Wayfinder to show only the parent and one level inner documents. That's easy, I'm using: Wayfinder? &startId=`[[*parent]]` &level=`1` &outerTpl=`wf_Outer`. My problem is let's say a user lands on Second Container. I want the top menu option to be "Second Container", but by using Parent, I get First Container included. How can I configure Wayfinder so that the parent is used unless the parent is already a container and then not back up any further?
install ultimateParent and replace
with an ultimateParent - snippet-Call.
Getting closer (Thanks Bruno17) but not quite there. Now I am using: [[Wayfinder? &startId=`[[UltimateParent]]` &level=`1` &outerTpl=`wf_Outer`]]. The problem is if a user were to view "Second Container" (see tree above in earlier post) the children appear in the menu but "Second Container" does not. Only the children. How do I include "Second Container" if that is the currently selected resource?