We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 23849
    • 223 Posts
    Hi All,

    I have 3 levels of documents on a site, where the first 2 levels are simply hidden containers (aka parents) and have visible children within.

    I want to show a handful of the children pages via Wayfinder on my homepage simply by specifying "show in menu" for some of the child documents under the main parent of the 3 levels of pages.

    My wayfinder call is:
    [!Wayfinder? &startId=`144` &sortBy=`published` !]

    Where 144 = the top level parent of the document tree. It is not showing anything currently because it hits the first parent document which is "hidden" and doesn’t travel deeper into the document tree to find and display the non-hidden pages.

    Is there a set of parameters or a way of doing this where you have multi-levels of hidden pages with a few non-hidden pages inside that will be displayed? Let me know!
      Nick Hoag
      Creative Partner
      The FutureForward

      http://thefutureforward.com
      • 23849
      • 223 Posts
      Really stuck on this one...

      Anyone out there know a way of parsing through a few levels of non-show-in-menu containers to display the show-in-menu children that lie beneath?
        Nick Hoag
        Creative Partner
        The FutureForward

        http://thefutureforward.com
        • 34108
        • 66 Posts
        I also need help with this exact issue. Any Wayfinder guru’s out there able to lend a hand smiley??
          • 1778
          • 659 Posts
          Hello
          I’m not a wayfinder guru but maybe I can help on this...
          Did you try to add the &level parameter in your Wayfinder call ?

          [!Wayfinder? &startId=`144` &level=`2` &sortBy=`published` !]
          


          This example should display documents 2 levels under the 144, of course you can change the &level=`2` by &level=`number of level you want to show under the startId`...

          Hope this helps
          Cheers
            • 18373 ☆ A M B ☆
            • 3,141 Posts
            &level shouldn’t influence this...


            I thought there was a specific parameter for this, but I’m thinking that might’ve been Ditto or something instead.

            Could try specifying &displayStart=`FALSE`, although that should be by default...
              Mark Hamstra • Developer spending his days working on Premium Extras and a MODX Site Dashboard with the ability to remotely upgrade MODX and extras to make the MODX world a little better.

              Tweet me @mark_hamstra, check my infrequent blog at markhamstra.com, my slightly more frequent ramblings at MODX.today or see code at Github.
              • 28042 ☆ A M B ☆
              • 24,524 Posts
              &level just specifies how many levels into the Resource Tree to go with generating the menu, it does not indicate at what level to begin.
                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
                • 23849
                • 223 Posts
                Yea, the default setting of ’0’ for &level should be fine for this as that delves into every level of the document tree which is what I need.

                Still plugging away on this with no luck..
                  Nick Hoag
                  Creative Partner
                  The FutureForward

                  http://thefutureforward.com
                  • 34108
                  • 66 Posts
                  I’ve found a way to do this, hope it works for you as well. It just involved forcing Wayfinder to show ALL menu items (whether they are set to be shown in the menu of not via the checkbox on each page) and then I manually hid the one’s I didn’t want to show up, e.g.

                  [!Wayfinder?&startId=`0` &level=`3` &ignoreHidden=`true` &excludeDocs=`3,5,12` !]

                  So basically it’s just a standard Wayfinder call, telling it to grab 3 levels worth, showing *everything* (&ignoreHidden=`true`) and then hiding specific page ID’s (&excludeDocs=`3,5,12`).
                    • 23849
                    • 223 Posts
                    Hi Harmony,

                    Thanks for the tip, that is definitely one way to do it.

                    I am still going to dig around for a different solution as this site is going to be "client-controlled", so having that extra step of adding items to the excludeDocs list just won’t do (not to mention there are going to be around 300 pages in this section of the site, so that list would be huuuuge!).

                    Let me know if you come across any other ways of making this work!
                      Nick Hoag
                      Creative Partner
                      The FutureForward

                      http://thefutureforward.com
                      • 22427
                      • 793 Posts
                      Hi all,

                      use Ditto instead of Wayfinder.

                      Create a chunk called "menu-item" to hold the wanted output for the items of the menu. For a first try just take
                      [+menutitle+]  

                      In your site template call Ditto in the following way:
                      [!Ditto? &tpl=`menu-item` &depth=`3` &sortBy=`ASC` &showInMenuOnly=`1` !]

                      The parameter &showInMenuOnly set to 1 hides all the items with the "Show in Menu" option unchecked. (&sortBy=`ASC` is necessary because Ditto uses DESC by default.)

                      That should do it.
                      Regards
                      ottogal