[Radiant] Menu of Siblings
Anton Aylward
anton at si.on.ca
Sun May 18 14:25:40 CDT 2008
I'm trying to write a snippet that produces a menu of the siblings of a
page.
If <r:navigation> wasn't such a mess I'd use that.
The snippet needs to locate itself dynamically and it will have a
wrapper to nothing happens at the root or top level.
It would be easy if the tags worked as:
... for ever r:if there was a corresponding r:unless
or
... for every r:if and r:unless there was a r:else
So what do I do without this? I try CSS
<r:parent:children:each>
<LI <r:if_self> class="hide" </r:if_self> <r:link /></li>
</r:parent:children:each>
This seems to work so long as the <ul> turns off the bullet.
Does anyone have any better ideas?
--
The early bird gets the worm, but the second mouse gets the cheese.
More information about the Radiant
mailing list