We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 15083
    • 697 Posts
    huh

    I’m using Wayfinder to insert a menu. No matter what call I make I get no output at all? Nothing!
    I’ve tried everything!

    Its not the page cache, as another snippet is fine and i’ve tried both calls. Documents all have the "show in menu" and are all published? Here is the call in the template:

    [!Wayfinder?startId=`2`!]

    I’m running out of ideas?
      • 21257 MODX Staff
      • 730 Posts
      jusmeig,

      Try
      [!Wayfinder? &startId=`2`!]
      


      The parameter has to have an & in front of it.
        Mike Schell
        Lead Developer, MODX Cloud
        Email: [email protected]
        GitHub: https://github.com/netProphET/
        Twitter: @mkschell
        • 15083
        • 697 Posts
        Hi there,

        that was but one of my problems...

        [!Wayfinder? &startId=`2`!]

        it turned out the menu would not show unless I set the start id to the site route. I was setting it to id 2....but id 1 was the site start.
        All working now tho wink

        Thank you!
          • 28042 ☆ A M B ☆
          • 24,524 Posts
          Yes, the startId has to be the ID of the parent of the documents you want in the menu. If you used `2` that would mean that it’s looking for all the children of document #2. So using the site root (`0`) would show all the documents in the site.
            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