[Radiant] children:each vs. navigation

Jim Herring jim1138 at gmail.com
Tue Oct 10 13:56:06 CDT 2006


Hi,

I'm building a site in radiant that has a section with a long subnavigation
menu. Initially I built it like this:

<r:find url="/section/papers/">
<r:children:each by="title">
    <div class="entry">
        <h3><r:link /></h3>
        <p><r:content part="shortline" /></p>
    </div>
</r:children:each>
</r:find>

That works fine, except that I need selected behaviour like r:navigation has
so that I can add another class to the div class=entry to highlight the sub
page the user is on.

I've tried using a big & nasty r:navigation tag (its a long list), but the
problem in that case are the r:link & r:content bits referring to the
current page rather than the page I'm creating a link.

Is there any way to accomplish this with the basic tag set in radiant? I can
imagine a few ways to modify the r:navigation or r:children:each tag
definitions, but that doesn't really seem like a great way to go to me. Am I
missing something obvious here?

Thanks,
Jim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.radiantcms.org/pipermail/radiant/attachments/20061010/36e4090c/attachment.html


More information about the Radiant mailing list