On Tue, 2008-05-27 at 10:20 -0500, Sean Cribbs wrote:
> Nate,
> 
> It depends on how you want to generate those menus.  <r:navigation> is 
> best for single list navigation menus that have highlighting, not nested 
> menus.  However, assuming you'll be generating the navigation from the 
> page structure, you could do something like this:
> 
> <r:find url="/">
> <ul>
> <r:children:each>
>   <li><r:link/>
>     <r:if_children>
>     <ul>
>       <r:children:each><li><r:link /></li></r:children:each>
>     </ul>
>     </r:if_children></li>
> </r:children:each>
> </ul>
> </r:find>
> 
> That will generate a list based on the homepage's children and 
> grandchildren pages.

OMG! Are you kidding me? It's that easy? I am really loving the switch
to Radiant.

One question though, I am using r:navigation to show the current page
with :here and :selected methods(?), so how would this work with the
markup you described?


~Nate

_______________________________________________
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

Reply via email to