Hey guys,

I've been using the navigation tag extension for a while now ( http:// 
svn.artofmission.com/svn/plugins/radiant/extensions/ 
navigation_tags/ ) but upon trying to use it on a new, 0.6.4 gem  
install w/ SQLite3, the <r:if_self> tag just doesn't want to seem to  
work.

        <r:find url="/projects/current-urban/kensington">
        <r:children:each order="desc">
        <li<r:if_self>class="selected"</r:if_self>><r:link /></li>
        </r:children:each>
        </r:find>

In this scenario, I get the list of children, but not a one ever gets  
the class="selected" appended to it.

Nobody would happen to know if I am either doing something wrong, OR,  
another way to achieve what I need it to do here?

Thanks in advance,

--
Travis Bell
Not sent from my iPhone.





On 23-Aug-07, at 6:15 PM, Ryan Heneise wrote:

> Travis,
>
> <r:nav /> will automatically attach the class "current" to the <li>
> tag of the current page in the hierarchy:
>> <li class="current"><a href="/a_page/a_sub_page/">A Sub Page</a></li>
>
> Or, you could use <r:if_self /> like this:
>
> <r:children:each>
>    <li<r:if_self> class="current"</r:if_self>><r:link /></li>
> </r:children:each>
_______________________________________________
Radiant mailing list
Post:   Radiant@lists.radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

Reply via email to