Hi - I am new to both Revo and Wayfinder. Many thanks to all have contributed to making it what it is. The docs are a lot to get one's head around and the 147 page guide to wayfinder in particular is splendid, exhaustive but - well - just a little exhausting...
Briefly, I want to use one template for both containers and their content pages, and have all the menu items for content pages in a container appear both when the container is displayed and also when any of the content pages are displayed.
so if I have a container
foo, with contents
bah,
hum and
bug
when I click on
foo I want to see a menu containing
bah,
hum and
bug
and when I click on
bah I want to see a menu containing
bah,
hum and
bug (plus foo, but the displayStart takes care of that...)
I can hack this up by creating separate templates for containers and contents, and issuing
[[!Wayfinder? &displayStart=`TRUE` &fullLink=`TRUE`]]
in the containers template and...
[[!Wayfinder? &level=`2` &startId=`[[*parent]]` &displayStart=`TRUE` &fullLink=`TRUE`]]
in the contents template.
But it is not terribly elegant. I would prefer to use one template.
Is there a way to issue wayfinder calls conditionally, depending on the "level" one is in?
I.e if one knows that ones container is always at a set "level" in the hierarchy, how does one test for it and do the appropriate way finder call?
Even better, is there a simple way of telling Wayfinder to do what I want with a single call?
Many thanks to anyone who has the time and expertise to answer.
[ed. note: nickmay last edited this post 15 years, 1 month ago.]