On 11.08.2008, at 16:29, Ben Morrow wrote:

I have a main navigation set up like so:

<r:navigation urls="About:/about/| Blog:/blog/| Portfolio:/ portfolio/">

I would like for the Blog link to be root relative, meaning that
whereever the user is on the site, they will always go to a child of the
root when they click a link.

So if a person is on www.site.com/misc/blah/blah and they click the blog
link they should be taken to www.site.com/blog.

However the way it is working now, they would be taken to

This is due to the fact that the link created by the navigation tag
looks like this:

<a href="blog"> ... instead of <a href="/blog/">.

So, how can I get the navigation tag to maintain my forward slashes, and
thus allow root relative linking?

How do you "implement" your navigation area? just checked, and with

  <div id="nav">
<ul><li><r:navigation urls="About:/about/| Blog:/blog/| Portfolio:/portfolio/">
  <r:normal><a href="<r:url />"><r:title /></a></r:normal>
  <r:here><strong><r:title /></strong></r:here>
<r:selected><strong><a href="<r:url />"><r:title /></a></strong></ r:selected>
  <r:between> | </li><li> </r:between>

as a snippet this gets rendered as

  <div id="nav">
<ul><li><a href="/about/">About</a> | </li><li> <a href="/ blog/">Blog</a> | </li><li> <a href="/portfolio/">Portfolio</a></li>


cu edi

DI Edmund Haselwanter, [EMAIL PROTECTED], http://edmund.haselwanter.com/

Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

Reply via email to