We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 19669
    • 4 Posts
    I am building a site with two sections for the menus. The first 6 pages in one area and the rest in another. All of these are top level pages and some will have children. The second wayfinder call outputs nothing. I have tried using different startId’s but anything other than 0 outputs nothing. Any idea’s on how I can get this working?

    Here are my wayfinder calls:
    <div class="top_level_links">
    [[Wayfinder? &startId=`0` &outerTpl=`menuContainer` &rowTpl=`menuRows` &level=`1` &limit=`6`]]
    </div>
    <div class="logo">
    {{Logo}}
    </div>
    <div class="sub_header">
    <div class="sub_links_home">
    [[Wayfinder? &startId=`9` &outerTpl=`menuContainer` &rowTpl=`menuRows` &level=`1`]]


    An update on this, I worked around by setting the 2nd startID to 0 and using &excludeDocs to exclude the first 6.
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      Another way to do what you want is to use the "showHidden" parameter of Wayfinder and the Show in Menu option of your top-level documents.

      For the first six documents, clear their Show in Menu checkbox.

      Now the first Wayfinder call can use the showHidden parameter to go ahead and show them anyway, while the limit parameter will show only the first six.

      The second Wayfinder call now won’t show those first six.

        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
        • 16183
        • 1,390 Posts
        Interesting trick Susan smiley

        @Miro, doc 9, is parent document and it has no children, right? I suppose you know that WF will output the children documents of the document specified as the startId, hence, by stating startId=`9`, you are telling WF to output its children and not the doc itself. That’s why "there was no output". smiley

        cheers/k
          • 19669
          • 4 Posts
          That’s a good way aroung Susan, unfortunately I already had the homepage hidden from this menu and didn’t want the ’home’ link shown on the homepage.

          Thank you for your response.

          @k Thanks for the info!