Re: Using a dynamic sub-navigation

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 />
</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 B.
Not sent from my iPhone.

Travis B. wrote:

BTW–it seems as though the <r:nav /> tag works fine, just not the
<r:if_self>. For now I changed my design to accommodate, so all is
well. Just an FYI.

Travis – I’m not using that extension but it sounds like the same issue
I had here: Tag.globals.actual_page returning null - Radiant CMS - Ruby-Forum

  • Dave

Yup, sounds exactly what was happening to me.

Any idea if there is a tag I can use now?


Travis B.
Not sent from my iPhone.

Travis B. wrote:

Yup, sounds exactly what was happening to me.

Any idea if there is a tag I can use now?

The basic idea is to do a find-and-replace for all instances of
‘tag.globals.actual_page’ with ‘tag.globals.page’ in the extension’s
code.

BTW–it seems as though the <r:nav /> tag works fine, just not the
<r:if_self>. For now I changed my design to accommodate, so all is
well. Just an FYI.

Cheers guys,


Travis B.
Not sent from my iPhone.

Hey David,

This worked with the <r:if_ancestor_or_self> tag but no matter what I
do, I can’t get it to work with the <r:if_self>. This is an extension
bug no doubt, but I thought I would atleast share my findings.

Thanks for the follow up,


Travis B.
Not sent from my iPhone.

Are using my extension, or another one?

http://svn.artofmission.com/svn/plugins/radiant/extensions/navigation_tags/lib/navigation_tags.rb

Hey Ryan,

Yup, that is the one I am using.


Travis B.
Not sent from my iPhone.