We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 17802
    • 190 Posts
    This is a probably a very stupid question... but I’m a bit stuck. I’m calling Wayfinder like this:
    [[Wayfinder?&startId=`4` &outerTpl=`submenuTpl` &level=`0`]]

    This outputs a menu of all the children in the folder with ID 4. BUT: I’d like to include the document with ID 4 itself in the menu as well... How can I do this? I’m using Wayfinder 2.0.
      Thanks for MODx - I love it!
      • 19726
      • 239 Posts
      Try the following parameters they should do what you want.
      New parameter &displayStart - displays the document specified as the startId as a header to the menu (only works with startId not equal to 0)
      New template &startItemTpl - Used to format the output of the startId Doc if &displayStart is used. Defaults to <h2>[+linktext+]</h2>
        • 17802
        • 190 Posts
        Okay, thanks. I actually noticed the &displayStart parameter, but I thought it was an overly complicated way of doing this. But if it’s the only way, I will use it wink
          Thanks for MODx - I love it!