We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 20001
    • 18 Posts
    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*]`]]
      • 11975
      • 2,542 Posts
      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.

      :-)
        Made with MODx : [url=http://www.copadel.com]copadel, fruits et l
        • 20001
        • 18 Posts
        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:(
          • 11975
          • 2,542 Posts
          If you wish to embed a snippet in another one, you have to use this syntax.

          [!snippet1? &param=`[[snippet2]]` !]

          :-)

            Made with MODx : [url=http://www.copadel.com]copadel, fruits et l
            • 20001
            • 18 Posts
            Cool, good to know:) What I did to accomplish this is to just set the parent id
            [[Wayfinder? &Startid=`15`]]

            Thanks for you help!
              • 28042 ☆ 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.
                Studying MODX in the desert - http://sottwell.com
                Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                Join the Slack Community - http://modx.org
                • 20001
                • 18 Posts
                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:)
                  • 25663 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
                    • 8960
                    • 150 Posts
                    Quote from: modxerr at Mar 23, 2007, 05:21 PM

                    I have read everything over and don’t understand the TV thing. Is there any chunk of code you can flip me. Thanks:)

                    Try this tutorial on TVs.

                    Ryan, I’m trying to "get" @INHERIT and the rest of the @BINDINGS. Anyone know of some good working examples or tutorials? I’ve seen a lot of posts that say ’put @INHERIT here’, but I haven’t seen anything like ’put this here, exactly like that to get it to do this’. Can someone throw me a bone? I’m about to read through the documentation for the Nth time, but it just hadn’t clicked for me yet. I had to make that tutorial just to ’get’ TVs.

                    Thanks for listening.
                      • 25663 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