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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 31 2025 04:22:30
Script start
Timing: Jan 31 2025 04:22:30
Module start 'layout'
Timing: Jan 31 2025 04:22:30
Module start 'content'
Timing: Jan 31 2025 04:22:30
Module end 'content'
Timing: Jan 31 2025 04:22:30
Script end

Main resources:

Total runtime0.0123 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0046 588.2813151.2266
Module start 'layout' 0.00460.0018 739.507836.6797
Module start 'content' 0.00630.0046 776.187590.3125
Module end 'content' 0.01100.0013 866.500029.9922
Script end 0.0123  896.4922 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002117.3401140.0002
Check MTime0.00107.8281140.0001
Mysql Total
Database connection0.00054.369310.0005
Mysqli_queries0.002217.869830.0007
Looping result0.00000.065710.0000
Template Total0.00108.410.0010
Template load0.00086.511510.0008
Template processing0.00021.799910.0002
Override
Cache load0.00064.612910.0006
General
dbfile0.00022.002980.0000
String conversion0.00000.040640.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs