Hi All,
I want to manipulate the contents of <r:url /> using regex. I'm
wanting to do something like MovableType's regex modifier for
variables[1]:
In MT-ese what I want to do is:
<mt:var tag="pagepermalink" regex_replace="/^(.+)\/ja\/(.*)/","$1/en/$2" />
To change eg:
http://example.site/ja/optional/path
into:
http://example.site/en/optional/path
How would I do this? Is there a way to write ruby code directly into
templates? Or am I looking at a custom Radius tag or making an
extension?
Thanks in advance!
peace - oli
[1]
http://www.movabletype.org/documentation/appendices/modifiers/regex-replace.html
_______________________________________________
Radiant mailing list
Post: [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site: http://lists.radiantcms.org/mailman/listinfo/radiant