Wayfinder rocks, but is there a way to tell it to only list the CHILD DOCUMENTS of a specific DOCUMENT?
I know I can specify a range of IDs to include in the menu, but I’m curious if there’s a way to do this dynamically, so that when the client adds a new CHILD DOCUMENT it would immediately appear in that menu, and not another?
-
MODX Staff
- 12,272 Posts
Have clients create documents as children of specific startId docs.
Ryan Thrash, MODX Co-Founder
Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
All you need to do is set the startId to the folder you want to display the menu for,
Wow. I’m a complete moron. Sorry about that :p
I am afraid it is not the best solution
I think there should be the way to get parent id and insert it in wayfinder
like
Wayfinder?&startId=`curent parent`
might be an API call??
Something like
Wayfinder?&startId=`curent parent`
=>
Wayfinder?&startId=`[*parent*]`
:-)