Shorten functionality with attribute view gui not works!

Author Message

Daniele Nocentini

Tuesday 14 June 2005 3:26:25 am

Is possible to apply the shorten functionality to the attribute_view_gui, example:

{attribute_view_gui attribute=$:item.object.data_map.intro|shorten(150)}

This is a xml field for article intro and not works, the article's intro not truncate after 150 characters.

Antica Bottega Digitale srl
http://www.abd.it

François Xavier Lacroix

Tuesday 14 June 2005 3:44:34 am

it never works for me...
actually, i use {view_node_gui...}, with
{$node.data_map.texte.content.output.output_text|shorten(150)} to display the xml field...
regards.

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 20:54:40
Script start
Timing: Jan 18 2025 20:54:40
Module start 'layout'
Timing: Jan 18 2025 20:54:40
Module start 'content'
Timing: Jan 18 2025 20:54:41
Module end 'content'
Timing: Jan 18 2025 20:54:41
Script end

Main resources:

Total runtime0.8348 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.0056 588.1563152.6563
Module start 'layout' 0.00560.0032 740.812539.5078
Module start 'content' 0.00880.8245 780.3203527.7422
Module end 'content' 0.83320.0015 1,308.06258.0938
Script end 0.8348  1,316.1563 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.3731160.0002
Check MTime0.00130.1582160.0001
Mysql Total
Database connection0.00060.074510.0006
Mysqli_queries0.787194.2890540.0146
Looping result0.00060.0672520.0000
Template Total0.802496.120.4012
Template load0.00250.299620.0013
Template processing0.799895.811520.3999
Template load and register function0.00010.013410.0001
states
state_id_array0.00110.130510.0011
state_identifier_array0.00110.127720.0005
Override
Cache load0.00210.2478130.0002
Sytem overhead
Fetch class attribute can translate value0.00130.153020.0006
Fetch class attribute name0.00210.248740.0005
XML
Image XML parsing0.00230.276820.0012
class_abstraction
Instantiating content class attribute0.00000.000840.0000
General
dbfile0.00320.3841220.0001
String conversion0.00000.001140.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
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.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: 7

Time used to render debug report: 0.0001 secs