Forum: Radiant CMS Nav

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Nav
keith (Guest)
on 2007-03-24 19:19
(Received via mailing list)
Hi All,

I am trying to build a site that has the following structure:

- Home
- - Departments
- - - Stores
- - - Articles

On each department page - sport for example - I need to add a nav for
the
articles within that department. I have tried the following and I was
just
wondering if I was doing anything wrong as it doesn't seem to work.

<ul>
<r:find url="<r:url />/articles/">
<r:children:each limit="10" order="asc">
<li><r:link /></li>
</r:children:each>
</r:find>
</ul>

I have tried numerous different variations but don't seem to be able to
manage it. If I only had articles as children it would of course be
easier
but I need the stores beneath departments also. Any ideas??

Keith
Keith B. (Guest)
on 2007-03-25 01:15
(Received via mailing list)
Keith,

radiant cannot parse Radius tags within Radius tags. This means, the
call <r:find url="<r:url />/articles/"> will not work. You will
probably need to do some conditionals or something, but I can't think
of an easy way to set up what you would like to do. Maybe some sort
of nested navigation. In the wiki is a recipe for a site map, take a
look at that, it may solve your problem.

But in any case, nested Radius tags will not work.

Hope this helps a bit.

Keith B.
Tel: +49-7731-79838380
removed_email_address@domain.invalid
Sean C. (Guest)
on 2007-03-25 09:16
(Received via mailing list)
Yes, unfortunately, you will probably have to spell out the entire url
of the parent page. Or, if you don't mind some minor brain-twisting,
you could do this:

<r:children:each>
<r:if_url matches="articles/?$"">
<r:children:each>
<li><r:link /></li>
</r:children:each>
</r:if_url>
</r:children:each>

Of course, modify that to your needs.

Sean
This topic is locked and can not be replied to.