Hey ez, how did you shorten the URLs? :))

Author Message

Marco Zinn

Tuesday 14 October 2003 8:04:01 am

I just posted in this thread:
http://www.ez.no/developer/ez_publish_3/forum/developer/preventing_caching_of_some_template
As you can see, the URLs in the forum message are shortened, with "..." in the middle.
Very cool!
Can someone tell me, how this is done? An operator probably, but which?

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

Jan Borsodi

Tuesday 14 October 2003 8:11:42 am

It's done in the autolink template operator which is part of 3.2, the fix for the text shortening is present in 3.2-2 (which is out pretty soon).

Example:
{$attribute.content|autolink(60)}
Shortens links larger than 60 characters and highlights them.

--
Amos

Documentation: http://ez.no/ez_publish/documentation
FAQ: http://ez.no/ez_publish/documentation/faq

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 18 2025 22:25:33
Script start
Timing: Jan 18 2025 22:25:33
Module start 'layout'
Timing: Jan 18 2025 22:25:33
Module start 'content'
Timing: Jan 18 2025 22:25:33
Module end 'content'
Timing: Jan 18 2025 22:25:33
Script end

Main resources:

Total runtime0.6800 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0057 587.9375152.6250
Module start 'layout' 0.00570.0027 740.562539.4453
Module start 'content' 0.00840.6704 780.0078529.0625
Module end 'content' 0.67880.0012 1,309.07038.1406
Script end 0.6800  1,317.2109 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.4650160.0002
Check MTime0.00140.1996160.0001
Mysql Total
Database connection0.00080.116910.0008
Mysqli_queries0.638193.8353540.0118
Looping result0.00050.0683520.0000
Template Total0.652596.020.3262
Template load0.00200.287520.0010
Template processing0.650595.664720.3253
Template load and register function0.00010.017410.0001
states
state_id_array0.00070.107810.0007
state_identifier_array0.00060.090920.0003
Override
Cache load0.00160.2316150.0001
Sytem overhead
Fetch class attribute can translate value0.00100.147220.0005
Fetch class attribute name0.00090.125640.0002
XML
Image XML parsing0.00110.155320.0005
class_abstraction
Instantiating content class attribute0.00000.001140.0000
General
dbfile0.00100.1435230.0000
String conversion0.00000.001240.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 11
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs