Jonathan,
Take a look at the documentation for the <r:navigation urls="' > tag.
It should do everything you describe and a little more.
I've copied the docs to this bottom of this message, but if you're on
the current 0.6.0 or 0.6.1 version of Radiant you can find this
documentation right in the new / edit page by clicking on the
"Available Tags" reference link. Also note that if you're NOT using
0.6.1 (you should be :) then you'll find that the url separator
character is a semi-colon (;) not a pipe (|).
Good luck
<r:navigation />
Renders a list of links specified in the urls attribute according to
three states:
* normal specifies the normal state for the link
* here specifies the state of the link when the url matches the
current page’s URL
* selected specifies the state of the link when the current page
matches is a child of the specified url
The between tag specifies what sould be inserted in between each of
the links.
Usage:
<r:navigation urls="[Title: url | Title: url | ...]">
<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> | </r:between>
</r:navigation>
On Jun 1, 2007, at 2:29 AM, Jonathan Métillon wrote:
> Hi,
>
> I have a snippet where I store my navigation bar. It's a bullet list,
> and I use CSS to make it looks like a bar, with each link as a button.
>
> Is there a way to have this bar dynamic, where the correct button
> while be attached a "current" CSS class appropriately?
>
> Thank you all.
>
> J.
> _______________________________________________
> Radiant mailing list
> Post: [email protected]
> Search: http://radiantcms.org/mailing-list/search/
> Site: http://lists.radiantcms.org/mailman/listinfo/radiant
_______________________________________________
Radiant mailing list
Post: [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site: http://lists.radiantcms.org/mailman/listinfo/radiant