# Dynamic Menu

**URL:** <https://www.ruby-forum.com/t/dynamic-menu/99845>\
**Category:** Radiant CMS\
**Created:** [July 25, 2006, 10:15pm UTC](https://www.ruby-forum.com/t/dynamic-menu/99845 "2006-07-25T22:15:56Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jake](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/f475e1/32.png) [@jake](https://www.ruby-forum.com/u/jake)\
**Post date:** [July 25, 2006, 10:15pm UTC](https://www.ruby-forum.com/t/dynamic-menu/99845/1 "2006-07-25T22:15:56Z")

</div>

I am new to radiant and although I really like it I am struggeling with  
this. I want to build a dynamic side nav am running into the following  
issues.

- 

When I use this code unless\_url doesn’t seem to match the url to the  
page.

I would really like to you \<r:navigation /\> here but I don’t want to  
hard code the navigation values I want them to be generated from a  
parent node.

Any help would be appriciated.

---

<div class="post-metadata">

**Author:** ![jake](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/f475e1/32.png) [@jake](https://www.ruby-forum.com/u/jake)\
**Post date:** [July 25, 2006, 11:19pm UTC](https://www.ruby-forum.com/t/dynamic-menu/99845/2 "2006-07-25T23:19:33Z")

</div>

Jake wrote:

> I am new to radiant and although I really like it I am struggeling with  
> this. I want to build a dynamic side nav am running into the following  
> issues.

Looks like unless\_url expects only a literal regular expression in  
“matches”; it doesn’t expand any tags in its argument. (I’m not sure  
anything in Radiant does.) So there’s no way to do what you want with  
pure tags at the moment.

Can’t you still use your same code inside an r:navigation tag, though?

Also, I’m a few days away from releasing 0.1 of SlickTabs (they’re  
style-ish!), which will auto-create accessible, graphical CSS rollover  
tabs based on anything you can do that generates a sequence of tags.  
You can see the graphical part in action at  
 [http://www.wellesleycarriagehouse.com](http://www.wellesleycarriagehouse.com), and the rollovers are coming  
soon. It may be too much for your purpose, but let me know if you want  
to alpha-test it.

Jay L.

---

<div class="post-metadata">

**Author:** ![jake](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/f475e1/32.png) [@jake](https://www.ruby-forum.com/u/jake)\
**Post date:** [July 26, 2006, 12:17am UTC](https://www.ruby-forum.com/t/dynamic-menu/99845/3 "2006-07-26T00:17:40Z")

</div>

Jay L. wrote:

> Jake wrote:
> 
> > I am new to radiant and although I really like it I am struggeling with  
> > this. I want to build a dynamic side nav am running into the following  
> > issues.
> 
> Looks like unless\_url expects only a literal regular expression in  
> “matches”; it doesn’t expand any tags in its argument. (I’m not sure  
> anything in Radiant does.) So there’s no way to do what you want with  
> pure tags at the moment.
> 
> Can’t you still use your same code inside an r:navigation tag, though?
> 
> Also, I’m a few days away from releasing 0.1 of SlickTabs (they’re  
> style-ish!), which will auto-create accessible, graphical CSS rollover  
> tabs based on anything you can do that generates a sequence of tags.  
> You can see the graphical part in action at  
> [http://www.wellesleycarriagehouse.com](http://www.wellesleycarriagehouse.com), and the rollovers are coming  
> soon. It may be too much for your purpose, but let me know if you want  
> to alpha-test it.
> 
> Jay L.

Thanks Jay,  
I tried to loop over the \<r:navigate/\> but that didn’t seem to work  
either. That tag needs to have a hard coded value for the “urls”  
attriubte it seems. Thanks for the feedback, when you get your tabs  
packaged up I would be stoked to get a look at it.

Jake

---

<div class="post-metadata">

**Author:** ![jake](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/f475e1/32.png) [@jake](https://www.ruby-forum.com/u/jake)\
**Post date:** [July 26, 2006, 3:55am UTC](https://www.ruby-forum.com/t/dynamic-menu/99845/4 "2006-07-26T03:55:36Z")

</div>

On 26/07/2006, at 7:17 AM, Jake wrote:

> > > \<r:children:each order=“desc”\>  
> > > attriubte it seems. Thanks for the feedback, when you get your tabs  
> > > packaged up I would be stoked to get a look at it.

Have you thought of modifying the \<r:navigate /\> to take a parent url  
instead of a list? I’ll need the same thing here, but i’ve got too many  
other things to get through first!

Bodhi

---

<div class="post-metadata">

**Author:** ![jake](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/f475e1/32.png) [@jake](https://www.ruby-forum.com/u/jake)\
**Post date:** [July 26, 2006, 5:18am UTC](https://www.ruby-forum.com/t/dynamic-menu/99845/5 "2006-07-26T05:18:04Z")

</div>

bodhi wrote:

> On 26/07/2006, at 7:17 AM, Jake wrote:
> 
> > > > \<r:children:each order=“desc”\>  
> > > > attriubte it seems. Thanks for the feedback, when you get your tabs  
> > > > packaged up I would be stoked to get a look at it.
> 
> Have you thought of modifying the \<r:navigate /\> to take a parent url  
> instead of a list? I’ll need the same thing here, but i’ve got too many  
> other things to get through first!
> 
> Bodhi

I have not jumped into the code yet but if I do I will be sure to come  
back here with the code.
