Sean Cribbs wrote:
> The <r:if_url> and <r:unless_url> tags probably provide what you need.
> Give the tags a 'matches' attribute that contains a regular expression.
> Here's an example:
> 
> <r:if_url matches="^/en/"><r:content part="body_en" /></r:if_url>
> 
> That would output the "body_en" part if the beginning of the URL matches
> /en/.
> 
> Sean

Doh. That was sitting right in front of my face. Thanks for the quick 
reply, Sean!

-R
-- 
Posted via http://www.ruby-forum.com/.
_______________________________________________
Radiant mailing list
Post:   [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

Reply via email to