Forums / Setup & design / How to use autolink operator on XMLtext datatype?

How to use autolink operator on XMLtext datatype?

Author Message

Marco Zinn

Thursday 24 January 2008 10:50:31 am

Hi,

i'd like to have URLs in e.g. Article intros converted automatically rendered to Links.
The autolink-operator ( http://ez.no/doc/ez_publish/technical_manual/3_10/reference/template_operators/strings/autolink ), that is used here in the forum, would suit my needs fine. But it does not work on XMLtext, as this already outputs rendered XHTML, which gets broken, when you apply autolink on it.
This bug says, that the operator is not intended to be used on XHTML, only on plain text: http://issues.ez.no/3204

How can i do have my links converted in XMLtext attributes anyway?
Yes, of course i can enter Link-Tags, but i'm lazy and i'd like to get my A-HTML-Links automatically ;)
Any idea?

Marco
http://www.hyperroad-design.com

Felix Laate

Friday 25 January 2008 3:04:59 am

Hi Marco!

Did you try it this way:

 {$node.data_map.message.content|simpletags|wordtoimage|autolink}

Cheers!

Publlic Relations Manager
Greater Stavanger
www.greaterstavanger.com