show template variables - new operator

Author Message

Claudia Kosny

Monday 26 February 2007 1:11:40 am

Hi there

I have published a beta version of an template operator that shows the variables that are available in the template where the operator is called. You can find it in the new projects section: http://projects.ez.no/show_variables under downloads.

Please note that this is quite experimental yet. The template operator works fine for my purposes but I haven't tested it much yet. Especially finding the difference between the root and the global namespace still eludes me, so some of the variables grouped under the root namespace might be global instead and vice versa. I also don't know whether there are any variables that do not appear in this list. Any tips or hints are welcome.

Please post any problems/suggestions ... in the forum for this project: http://projects.ez.no/show_variables/forum

Claudia

Bruce Morrison

Monday 26 February 2007 1:26:02 am

Hi Claudia

I'll have to check this out. I asked for /proposed something list this a long time ago!
http://ez.no/community/forum/suggestions/show_variables_template_operator

Cheers
Bruce

My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish

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

Main resources:

Total runtime1.0913 sec
Peak memory usage8,192.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0058 588.1328151.2109
Module start 'layout' 0.00580.0041 739.3438220.7031
Module start 'content' 0.00991.0805 960.04694,428.9375
Module end 'content' 1.09050.0008 5,388.98447.8438
Script end 1.0913  5,396.8281 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00390.3567160.0002
Check MTime0.00160.1423160.0001
Mysql Total
Database connection0.00070.061610.0007
Mysqli_queries1.000891.7070540.0185
Looping result0.00060.0565520.0000
Template Total1.031594.520.5157
Template load0.00230.212920.0012
Template processing1.029294.302720.5146
Template load and register function0.00140.126610.0014
states
state_id_array0.00170.154510.0017
state_identifier_array0.00350.321920.0018
Override
Cache load0.00190.1748150.0001
Sytem overhead
Fetch class attribute can translate value0.00220.202320.0011
Fetch class attribute name0.00220.205730.0007
XML
Image XML parsing0.00090.079620.0004
class_abstraction
Instantiating content class attribute0.00000.000730.0000
General
dbfile0.00250.2279160.0002
String conversion0.00000.000840.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
4content/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
2content/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: 6

Time used to render debug report: 0.0001 secs