Perhaps this has been asked before, but a search didn’t turn up what I wanted.
Is it possible to start a menu list from the current folder and display a single level.
So for example I might have a document tree like this...
Home
About
Photos
-- Portraits
-- Landscapes
-- ... Mountains
-- ... Lakes
-- ... Oceans
-- Dogs
-- Cats
Contacts
If I’m on the Photos page the sub menu would display Portraits, Landscapes, Dogs, Cats. If I click on Landscapes, then the menu would output Mountains, Lakes, Oceans.
-
☆ A M B ☆
- 24,524 Posts
Sure. Just use [*id*] as the startId value instead of a document ID number.
Brilliant. I should have thought of that.
You can also just remove the startId parameter from your snippet call, if none is specified it will use the current document ID as the default.
When I removed the startID parameter nothing was output. That was what I originaly tried.
Hmmmmmm.... Thats strange, if no id is specified it should use the current doc and display all children. Can you post your whole snippet call, maybe I can figure out why that doesn’t work for you.
Hello, I’ve try to modify the main menu of the 0.9.5 beta default template, and I’ve some problem with category folders.
1 - I’ve empty the document "Template" of the demo site and rename it "Forum"
2 - I’ve set the Template of this Foder (Forum) to blank and add the rel="category" in link attribute
3 - I’ve add the option &categoryFoldersTpl=`wfCatTpl` and the debug option in the snippet call
4 - I’ve add the chunk with a sample text like <li[+wf.classes+]>[+wf.wrapper+]</li>
5 when I load the main page, I see the debug message (the chunk wfCatTpl is loaded) but the "Forum" item has the default template.
I don’t understant why it doesn’t work ?
Any Idea ?
OncleBen31,
I just tried the steps you wrote and it worked fine for me, can you post the snippet call. I’m not sure why its not picking up the category folders template. Also, do you have a link where I can see the debug output.
jbjones,
When I do not include the startId it works just fine for me, can you turn on the debug output and see what it says the start Id is?
I’d like to request a feature for Wayfinder. It would be nice if you could choose what field the menu items will be sorted by.