Hi,
For a secondary navigation on our site we need wayfinder to start at the deepest level folder the document lies in that is currently viewed. To illustrate what i meant i made some ascii art below. I want to use the page id of "a" as a startId when the user is viewing "1" or "2". If the user is viewing "3" or "4" i want to use the page id of "b" as a startId.
0 (site start/root)
|
|-a
| |-1
| |-2
|-b
|-3
|-4
Thanks in advance.
Hi,
did you try with UltimateParent snippet ?
You call will look like this one
[!wayFinder? &startID=`[[UltimateParent]]` !]
:-)
-
☆ A M B ☆
- 24,524 Posts
Yeah, Ditto uses "startID", and Wayfinder uses "startId"... always causes me trouble.
-
MODX Staff
- 12,272 Posts
Seems like it would make sense to have them both be ID ... and to provide backwards compatibility for instances of Id.
Ryan Thrash, MODX Co-Founder
Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
-
☆ A M B ☆
- 24,524 Posts
As far as I can tell, all the snippets that have the need to indicate a document ID to use has a different variable. In a way I suppose it’s not a bad thing since it avoids the possibility of conflicts.