We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 26182
    • 164 Posts
    Hi there,

    If anyone could help with this it would be great. I’ve checked out the variables for wayfinder and I’ve tried a few different things but I’m not too sure what I’m doing wrong.

    I am trying to seperate two differerent navigation areas. One will contain the tools for the site and the other will list the profiles featured on the site. They are both just list items.

    <div id="sidebar">
    <ul>
    <li id="dropmenu"><a name="dropmenu"></a><h2>Tools:</h2>
    [[Wayfinder? &startId=`0 | 1 | 2`]]
    </li>

    <li id="profiles"><a name="profiles"></a><h2>Profiles:</h2>
    [[Wayfinder? &startId = `0`]]
    </li>

    </ul>
    </div>
    <!-- close #sidebar -->

    If anyone could tell me who I can correctly select links to different pages to be displayed by wayfinder that would be greatly appreciated.

    Thankyou very much.

    Sarah
      • 25663 MODX Staff
      • 12,272 Posts
      What is your document structure like?
        Ryan Thrash, MODX Co-Founder
        Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
        • 28042 ☆ A M B ☆
        • 24,524 Posts
        I always make a container that doesn’t show in the menu or is unpublished to hold either the documents for the tools menu or weblinks to the pages if they appear in the main section also (such as a contact page). Then I use a Wayfinder call with that container as its startId.

        This can get a little tricky when making a sitemap, but if you work out the document tree structure it can be done.
          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
          • 26182
          • 164 Posts
          hi guys thanks for the tips. is a container a folder? or have i missed the point completely lol. do you need to use TVs to set up hierarchies? thanks in advance.

          sarah
            • 15987
            • 786 Posts
            sarah,
            yes containers/folders are the same thing and no you do not need to use tvs to create the heirarchy. Just create a folder, put the docs in it and then call wayfinder with the startId equal to the id of the folder. wayfinder will then output all docs under that folder.
              • 26182
              • 164 Posts
              ok cool thanks for that smiley i’ll give it a try and let you know how i go. thanks for all your help! laugh
                • 26182
                • 164 Posts
                hooray! i did it! thanks for all your help grin