Dynamic Menu

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.

  • Continue Reading…

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.

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, 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.

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, 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

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

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.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs