Bug in template operator append ?

Author Message

Marko Pohl

Friday 20 February 2004 12:49:18 am

If you try this:

{"Testing "|append( "1 ", "2 ", "3" )}

as written in the docs you get only the first item appended:
'Testing 1'
This works, giving you 'Testing 1 2 3':

{"Testing "|append("1 ")|append("2 ")|append("3" )}

Any ideas?

I Use Ezpublish 3.3-3 (3.3) Rev 5019

Vidar Langseid

Tuesday 24 February 2004 3:21:27 am

The append operator cannot append multiple strings to a string.

I have now fixed this so that this will work in 3.2-5 (rev 5240) and 3.3-4 rev5241)

I have also updated the documentation:
http://ez.no/ez_publish/documentation/reference/template_operators/arrays/append

Best regards,
Vidar

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 15:50:45
Script start
Timing: Jan 18 2025 15:50:45
Module start 'layout'
Timing: Jan 18 2025 15:50:45
Module start 'content'
Timing: Jan 18 2025 15:50:46
Module end 'content'
Timing: Jan 18 2025 15:50:46
Script end

Main resources:

Total runtime1.1535 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.0049 587.9141152.6250
Module start 'layout' 0.00490.0028 740.539139.4453
Module start 'content' 0.00771.1446 779.9844459.8828
Module end 'content' 1.15230.0012 1,239.86728.1563
Script end 1.1535  1,248.0234 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00300.2605160.0002
Check MTime0.00130.1097160.0001
Mysql Total
Database connection0.00070.060010.0007
Mysqli_queries1.112796.4620540.0206
Looping result0.00050.0424520.0000
Template Total1.127197.720.5636
Template load0.00200.171020.0010
Template processing1.125197.539320.5626
Template load and register function0.00020.014110.0002
states
state_id_array0.00070.063810.0007
state_identifier_array0.00120.101220.0006
Override
Cache load0.00160.1377180.0001
Sytem overhead
Fetch class attribute can translate value0.00070.064720.0004
Fetch class attribute name0.00130.109120.0006
XML
Image XML parsing0.00030.023120.0001
class_abstraction
Instantiating content class attribute0.00000.000820.0000
General
dbfile0.00050.0463100.0001
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/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/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: 12
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs