Hi Group, Newbie dude here! Modx rocks and trying to have something happen with Wayfinder and I have tried and tried.
Have a articles built up, but per child want to display every child for that parent in the body of the text. Not so much for a menu just a list of titles for articles under that main parent. I appreciate the help and have tried the below code from another post but nothing displays. Thanks.
[[Wayfinder? &startId=`[*id*]`]]
Hi,
[[Wayfinder? &startId=`[*parent*]`]]
Should do the trick.
If you have more than one level, have a look at the ultimateParent snippet to set the startId param.
:-)
Thanks heliotrope! I tried that and nothing shows. Basically it’s parent -> child -> sibling. Trying to get the sibling list but even [[UltimateParent? &id=`15` &top=`16`]] is not working. Not sure what I am doing wrong:(
If you wish to embed a snippet in another one, you have to use this syntax.
[!snippet1? ¶m=`[[snippet2]]` !]
:-)
Cool, good to know:) What I did to accomplish this is to just set the parent id
[[Wayfinder? &Startid=`15`]]
Thanks for you help!
-
☆ A M B ☆
- 24,524 Posts
I often set up my Wayfinder call in a TV whose default is @INHERIT, then in the parent document I put in the appropriate Wayfinder call so that it gets inherited by all the children under it.
hi sottwell, what you said sounds really awesome but it went right over my head. I have read everything over and don’t understand the TV thing. Is there any chunk of code you can flip me. Thanks:)
-
MODX Staff
- 12,272 Posts
@INHERIT means "use whatever value is in the TV of the parent container document above me".
What Susan meant is that for each section there is a parent container document, and children below that level. She sets the Wayfinder call in the top-level container, and all the child docs/containers under that automatically inherit the value from the first instance that actually has a value from above: the top-level parent container doc.
Make more sense?
(Note: once you get @INHERIT, you’ll love it!)
Ryan Thrash, MODX Co-Founder
Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
-
MODX Staff
- 12,272 Posts
@INHERIT would go in the default value field.
Ryan Thrash, MODX Co-Founder
Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me