We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 25899
    • 46 Posts
    Quote from: BobRay at Apr 05, 2009, 04:39 PM

    If I’m understanding correctly, I don’t think he needs UltimateParent since he just wants to show the children of the current document. If so, this should do what he wants:

    [[Wayfinder &startid=`[*id*]` ]]


    So what you are saying here Bob, is that if I set up wayfinder to show me a leftmenu, if for instance my menu "About me" has subpages (children) then this should work?

    I should be able to have both a topmenu and lefetmenu, representing my subpages, by using this way?

    If this is itm is very easy cool

    I wil try this and let you know how it turned out.

    Thanks again guys

    //Carsten
      You don
      • 16183
      • 1,390 Posts
      There’s was a small typo in Bob’s code though - you probably noticed it; change startid to startId wink
        • 3749
        • 24,544 Posts
        Quote from: kongondo at Apr 06, 2009, 05:06 AM

        There’s was a small typo in Bob’s code though - you probably noticed it; change startid to startId wink

        Oops. Thought I had fixed that. Thanks for catching it. smiley
          Did I help you? Buy me a beer
          Get my Book: MODX:The Official Guide
          MODX info for everyone: http://bobsguides.com/modx.html
          My MODX Extras
          Bob's Guides is now hosted at A2 MODX Hosting
          • 17851
          • 213 Posts
          I’ve also had the case where the left nav is multilevel, so using [*id*] wouldn’t work real well since the left nav would get screwed up when you goto a 3rd level menu. What I’ve used is this:

          • Create a TV called NavParent (or whatever). It will contain the doc id of the top level menu. For simplicity, you can leave it a text field, or you can do a DropdownListMenu with the Input Option Values: [tt]@SELECT pagetitle, id from modx_site_content where parent = 0 and published=1 order by menuindex[/tt]. This will let the user select a nice page name instead of type a document id.
          • Set the default value to @INHERIT. This is so the the user won’t have to select the top nav parent for each new document in the hierarchy.
          • Now your snippet call will be: [tt][!Wayfinder &startid=`[*NavParent*]` .... !][/tt]
          This is probably the best way I know.
            Mark Macatee
            President
            Power 10 Solutions
            http://www.power10solutions.com