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!
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?
-
☆ 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...
-
☆ 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.
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..
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`).
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!