string size

Author Message

risto CMS user

Monday 06 February 2006 7:10:05 am

How can i make the string size of the intro limit it self to a 100 caracters?

        {attribute_view_gui attribute=$node.object.data_map.intro}

risto CMS user

Monday 06 February 2006 7:38:04 am

sory never mind.

i found the solution

{$node.object.data_map.intro.content.output.output_text|striptags|shorten( 100 )}

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 22 2025 01:58:17
Script start
Timing: Jan 22 2025 01:58:17
Module start 'layout'
Timing: Jan 22 2025 01:58:17
Module start 'content'
Timing: Jan 22 2025 01:58:19
Module end 'content'
Timing: Jan 22 2025 01:58:19
Script end

Main resources:

Total runtime1.9546 sec
Peak memory usage4,096.0000 KB
Database Queries52

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0127 590.4609151.1953
Module start 'layout' 0.01270.0048 741.656336.6094
Module start 'content' 0.01761.9356 778.2656480.3047
Module end 'content' 1.95320.0014 1,258.57037.8906
Script end 1.9546  1,266.4609 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00440.2263160.0003
Check MTime0.00150.0782160.0001
Mysql Total
Database connection0.00170.085310.0017
Mysqli_queries1.906397.5299520.0367
Looping result0.00060.0304500.0000
Template Total1.900797.220.9504
Template load0.00220.113420.0011
Template processing1.898597.128520.9493
Template load and register function0.00020.010410.0002
states
state_id_array0.00150.078110.0015
state_identifier_array0.00450.232520.0023
Override
Cache load0.00170.0884110.0002
Sytem overhead
Fetch class attribute can translate value0.00060.028510.0006
Fetch class attribute name0.00120.063830.0004
XML
Image XML parsing0.00240.122210.0024
class_abstraction
Instantiating content class attribute0.00000.000740.0000
General
dbfile0.00260.1354160.0002
String conversion0.00000.000740.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/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 10
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs