-
- 73 Posts
thanks very much ottogal. I now seem to have success in terms of it writing out without the extra parameter. Unfortunately, though, not the desired result overall
- I still don't get any joy with "$input", I need "$output" to give me the levels.
- Once I have the levels, processing stops for the levels beyond 2. I think this is probably the way Wayfinder works, i.e. it's the [+wf.wrapper+] that gives me the lower levels, so I've change it to this now (notice the [+wf.wrapper+] in the is=2 condition
[+wf.docid:limit=`0`+][+phx:input=`[+wf.docid+]`:getLevel:is=`2`:then=`[+wf.wrapper+]`:else=`<li><a title="[+wf.title+]" href="[+wf.link+]">[+wf.linktext+]</a>[+wf.wrapper+]</li>`+]
- now I need to hide all the submenus in the non-active items. Do you think I can do this via assigning other template chunks to the wayfinder call?
-
- 73 Posts
thanks very much ottogal. I now seem to have success in terms of it writing out without the extra parameter. Unfortunately, though, not the desired result overall
- I still don't get any joy with "$input", I need "$output" to give me the levels.
- Once I have the levels, processing stops for the levels beyond 2. I think this is probably the way Wayfinder works, i.e. it's the [+wf.wrapper+] that gives me the lower levels, so I've change it to this now (notice the [+wf.wrapper+] in the is=2 condition
[+wf.docid:limit=`0`+][+phx:input=`[+wf.docid+]`:getLevel:is=`2`:then=`[+wf.wrapper+]`:else=`<li><a title="[+wf.title+]" href="[+wf.link+]">[+wf.linktext+]</a>[+wf.wrapper+]</li>`+]
- now I need to hide all the submenus in the non-active items. Do you think I can do this via assigning other template chunks to the wayfinder call?