# Navigation Bug?

**URL:** <https://www.ruby-forum.com/t/navigation-bug/112129>\
**Category:** Radiant CMS\
**Created:** [August 15, 2007, 6:32pm UTC](https://www.ruby-forum.com/t/navigation-bug/112129 "2007-08-15T18:32:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bfsog](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/71c47a/32.png) [@bfsog](https://www.ruby-forum.com/u/bfsog)\
**Post date:** [August 15, 2007, 6:32pm UTC](https://www.ruby-forum.com/t/navigation-bug/112129/1 "2007-08-15T18:32:10Z")

</div>

I am currently working on a site with a rather convoluted navigation  
scheme (it wasn’t my decision, the graphic designer came up with it,  
and the client likes it, so I must comply).

When trying to simplify and DRY up the navigation snippets I’ve come  
across what appears to be a bug. The contents of the snipped are below:

- 
- 
--\> - 

The line with the arrow (the nested LI) is the issue. I have tried  
making it:

\<r:child\>

- \<r:title/\>
\</r:child\>

which also fails.

The output is quite odd. The LI gets printed the proper number of  
times, but the url and title are all pointed to the parents.

Anyone have any ideas?

Thanks,  
Andrew

---

<div class="post-metadata">

**Author:** ![bfsog](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/71c47a/32.png) [@bfsog](https://www.ruby-forum.com/u/bfsog)\
**Post date:** [August 15, 2007, 6:51pm UTC](https://www.ruby-forum.com/t/navigation-bug/112129/2 "2007-08-15T18:51:12Z")

</div>

The navigation tag doesn’t operate in the context of a given page, only  
with respect to the title and url given in the urls attribute. So  
essentially, you don’t have access to the pages directly.

Sean

---

<div class="post-metadata">

**Author:** ![bfsog](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/71c47a/32.png) [@bfsog](https://www.ruby-forum.com/u/bfsog)\
**Post date:** [August 15, 2007, 8:40pm UTC](https://www.ruby-forum.com/t/navigation-bug/112129/3 "2007-08-15T20:40:26Z")

</div>

Damn, not a bug. ok

How terrible or difficult would it be to hack it to do what we need?  
At the moment we circumvented the problem with Javascript ☹

- 
  -

---

<div class="post-metadata">

**Author:** ![bfsog](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/71c47a/32.png) [@bfsog](https://www.ruby-forum.com/u/bfsog)\
**Post date:** [August 15, 2007, 9:21pm UTC](https://www.ruby-forum.com/t/navigation-bug/112129/4 "2007-08-15T21:21:28Z")

</div>

Andrew,

I have a modified version of the navigation tags here:  
[http://svn.artofmission.com/svn/plugins/radiant/extensions/](http://svn.artofmission.com/svn/plugins/radiant/extensions/)  
navigation\_tags

The documentation is poor, but essentially you can just put  
\<r:nav /\>  
and it will output a

 list similar to what you want.

Feel free to hack it.

  - ryan
