Determing Body length

Author Message

Rick van Lieshout

Wednesday 23 April 2003 9:11:37 am

Hi,

I wanna use the Article class for News messages, however not all the messages will have a Body. This implies not all the messages having a "Read more..." link.

The question however is how to determine the length of the body identifier from 'line_class_2.tpl'? Any ideas? I could not find a usefull operator to do this.

Paul Borgermans

Thursday 24 April 2003 10:08:03 am

use the count operator, this will return the string length in case of a string

Paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

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

Main resources:

Total runtime0.8531 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.0059 589.0234152.6250
Module start 'layout' 0.00590.0051 741.648439.4453
Module start 'content' 0.01100.8407 781.0938520.4063
Module end 'content' 0.85170.0014 1,301.50008.1719
Script end 0.8531  1,309.6719 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00370.4376160.0002
Check MTime0.00160.1920160.0001
Mysql Total
Database connection0.00080.097410.0008
Mysqli_queries0.811295.0875540.0150
Looping result0.00040.0495520.0000
Template Total0.818295.920.4091
Template load0.00200.237820.0010
Template processing0.816295.675320.4081
Template load and register function0.00020.021610.0002
states
state_id_array0.00120.137410.0012
state_identifier_array0.00140.169020.0007
Override
Cache load0.00170.1935100.0002
Sytem overhead
Fetch class attribute can translate value0.00090.108520.0005
Fetch class attribute name0.00130.146630.0004
XML
Image XML parsing0.00060.075620.0003
class_abstraction
Instantiating content class attribute0.00000.001030.0000
General
dbfile0.00080.0949170.0000
String conversion0.00000.001340.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/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
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 7
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs