Is there a way to tell Wayfinder to list only one particular folder?
I’ve set up a multilanguage site, where each language version set is in its own, separate folder. So far so good.
Now I want Wayfinder to generate only the appropriate folder-contents of the current language.
e.g. folder = menuindex = 1 = german
Is there an attribute like "menuindex" I can use?
This doesn’t work, unfortunately: [!Wayfinder? &startId=`0` &menuId=`[*menuindex*]`!]
I’ve searched the forum and read the instructions, but couldn’t find anything. Is there a hack/workaround for this?
Of course, I could just go and not use WF at all, using my own PHP and mySQL-selects via include(), but I’d prefer to solve this via Wayfinder...
You can use something like this:
[!Wayfinder? &startId=`[[UltimateParent]]`!]
where [[UltimateParent]] snippet determines the parent of current document e.g.
- en
-- doc1
- fr
-- doc2
when you will on doc2, WF renders the childs of "fr".
Hope this helps.