Template language changes ?

Author Message

jf poux

Thursday 27 November 2003 10:21:45 am

I have noticed (or missunderstood something perhaps :) ) differences in the template language between the version 3.2.3 and 3.3.0 beta.
By example, I used : {section name=something...} in version 3.2.3, and in version 3.3.0 it seems to be {section var=samething...}.
Are there any other differences in the template language ?
Thanks

Jo Henrik Endrerud

Tuesday 02 December 2003 6:57:05 am

The changes is done to avoid problems with namespaces. All old template code is still valid so this is backward compatible. When using var=name you can access variables with $name.item instead of $namespace:item . This isn't a big deal in small examples, but if you have nested sections and so on this makes it a lot easier.

Jo Henrik Endrerud | System Developer @ Seeds Consulting | http://www.seeds.no

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 31 2025 00:34:32
Script start
Timing: Jan 31 2025 00:34:32
Module start 'layout'
Timing: Jan 31 2025 00:34:32
Module start 'content'
Timing: Jan 31 2025 00:34:32
Module end 'content'
Timing: Jan 31 2025 00:34:32
Script end

Main resources:

Total runtime0.0282 sec
Peak memory usage4,096.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0065 588.1406151.2109
Module start 'layout' 0.00650.0050 739.3516220.6875
Module start 'content' 0.01150.0149 960.0391997.6797
Module end 'content' 0.02640.0018 1,957.718829.9922
Script end 0.0282  1,987.7109 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00289.9771140.0002
Check MTime0.00113.7424140.0001
Mysql Total
Database connection0.00144.859810.0014
Mysqli_queries0.00258.787930.0008
Looping result0.00000.056610.0000
Template Total0.00144.910.0014
Template load0.00103.584410.0010
Template processing0.00041.268610.0004
Override
Cache load0.00062.150310.0006
General
dbfile0.00031.185080.0000
String conversion0.00000.031240.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs