get all var in my template

Author Message

Rémy Limouzin

Tuesday 15 April 2008 5:33:22 am

Hello,

I look for listing all var in my template.

for example :

I override the template for user/register
At de beginnig of the template there are multiples variables available :
$checkErrNodeId
$validation
$content_attributes

So, I just want to list then, because it's not evident to known they are here.

thank,
:)

Bruce Morrison

Tuesday 15 April 2008 6:17:15 am

Hi Rémy

I think this is what you are looking for: http://projects.ez.no/index.php/show_variables

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

Rémy Limouzin

Monday 21 April 2008 12:27:49 am

thanks Bruce,

This what i look for.
But it dont work with ezPublish 3.10

In my template

<!-- 
{show_variables()}
-->

=> In the html page

<!-- 

-->

show_variables is in "ez projects".
I need to install something ?

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

Main resources:

Total runtime0.0263 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.0073 588.1250151.2109
Module start 'layout' 0.00730.0045 739.3359220.6875
Module start 'content' 0.01180.0132 960.0234997.8828
Module end 'content' 0.02500.0013 1,957.906329.9922
Script end 0.0263  1,987.8984 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002810.4636140.0002
Check MTime0.00124.5026140.0001
Mysql Total
Database connection0.00124.425610.0012
Mysqli_queries0.003212.126630.0011
Looping result0.00000.087010.0000
Template Total0.00093.410.0009
Template load0.00072.807010.0007
Template processing0.00020.603210.0002
Override
Cache load0.00051.987310.0005
General
dbfile0.00041.366880.0000
String conversion0.00000.034440.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