We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 12379
    • 460 Posts
    I want to use the UltimateParent to head a sidebar menu as follows:

    <div id="sidebarwide">
    <h1>--- UltimateParent heading here ---</h1>
    [!Wayfinder?startId=`[[UltimateParent]]`!]
    </div>


    How would I do this? Absolute beginner here so will need complete solution please smiley
      Mostly harmless.
      • 5727
      • 160 Posts
      Read sottwell’s post below. grin
        Olivier Deland
        Montreal, Canada - Web Developer
        • 28042 ☆ A M B ☆
        • 24,524 Posts
        There is an option to the newer Wayfinder snippet that allows you to have the document whose ID you specify listed along with its children.

        &displayStart=`1` &startItemTpl=`chunkname`

        The startItemTpl chunk could look like this:

        <h2>[+wf.linktext+]</h2>[+wf.wrapper+]

        The .html documentation file is well worth going over several times.

        http://wiki.modxcms.com/index.php/Wayfinder200
          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
          • 12379
          • 460 Posts
          Thanks - that worked a treat. However when I specify <h1> in the chunk instead of <h2> it keeps appearing as <h2> in the page!
            Mostly harmless.