# R:navigation url attributes settable by r:find?

**URL:** <https://www.ruby-forum.com/t/r-navigation-url-attributes-settable-by-r-find/89209>\
**Category:** Radiant CMS\
**Created:** [March 18, 2007, 6:01pm UTC](https://www.ruby-forum.com/t/r-navigation-url-attributes-settable-by-r-find/89209 "2007-03-18T18:01:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![raphael\_b](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/7c8e57/32.png) [@raphael\_b](https://www.ruby-forum.com/u/raphael_b)\
**Post date:** [March 18, 2007, 6:01pm UTC](https://www.ruby-forum.com/t/r-navigation-url-attributes-settable-by-r-find/89209/1 "2007-03-18T18:01:52Z")

</div>

Hi,

I thought to use the r:navigation tag for a menu, but I would prefer  
to pass the urls to use dynamically, ie with something like the result  
of \<r:find url=“/menu\_items/”\>, using the title as the label. Is this  
planned or even possible? Is there a specific reason why the list has  
to be passed manually?

Currently I have a menu without any indication of where you are  
currently (hence my interest in r:navigation):

```
      <ul class="bottom">
        <r:children:each>
          <li><r:link><r:title /></r:link></li>
        </r:children:each>
      </ul>

```

Makes me wonder if I could do something like (illustration code

```
      <ul class="bottom">
        <r:children:each>
          <li <r:if_url

```

url=r:url\>class=“active”\</r:if\_url\>\>\<r:link\>\<r:title /\>\</r:link\>  
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  
\</r:children:each\>

ie using the current child’s url (r:url) in the r:if\_url test.

Thanks in advance for your help

Raph

–  
Web database: [http://www.myowndb.com](http://www.myowndb.com)  
Free Software Developers Meeting: [http://www.fosdem.org](http://www.fosdem.org)
