Hi, just started using MODx and I am trying to use Wayfinder to create two different menus. The first menu is the main navigation that lists the main section pages in my site (About Us, Products, News, etc.) - the call I’m using for this, which works great, is:
[[Wayfinder? &startId=`0` &level=`1`]]
When the user visits a section, I would also like to have a menu that lists just the pages in that section. Each of my main section pages has pages underneath them in the document hierarchy and I am trying to figure out how to use Wayfinder to dynamically create a menu listing these section pages. I have looked at the documentation and searched for an example of this but have not been able to figure it out. Is anyone doing this on their site and could you possibly post the Wayfinder code that would create this dynamic section menu?
Thanks,
Clay
Check the UltimateParent snippet which is included in the MODx default install.
"Be sure and use the ’[! !]’ brackets instead of the ’[[ ]]’ brackets around the Wayfinder call. Evidently this is required when you are calling a snippet inside of another snippet (which you have to do with the UltimateParent snippet call)."
Thanks, a little tip like that can sidestep a lot of headaches.