Forums / General / All available variables in template!?

All available variables in template!?

Author Message

Kaiko Kaur

Wednesday 14 May 2003 7:05:20 am

Is it possible to get list of all availables variables in template!?
I can see all attributes for one variables with attribute, but I'd like to know what variables can I use at all? (It is like php $GLOBALS maybe?)

Jo Henrik Endrerud

Wednesday 14 May 2003 10:40:58 am

The only object defined in a normal template is the $node object. You use this to fetch new variables. To show all attributes in an object you can use this command:

{$node|attribute(show)}

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

Kaiko Kaur

Wednesday 14 May 2003 5:37:28 pm

Ok, but what about other templates. Now I'm interested in custom tag template. I know there is $content, but is there some more?
Let's say I'd like to use like this <custom name="myTag" something="blahh"></custom>

Is this possible to catch this something? Is this documented somewhere?

Jan Borsodi

Thursday 15 May 2003 1:11:48 am

If you're meaning the custom tags in the xml datatype the only variable that is set is content.

For other templates it varies which variables are available, some variables are set from PHP code (like in kernel/content/view.php) while others are passed by template code.

There's no documentation of which variables are avaiable at the moment.

--
Amos

Documentation: http://ez.no/ez_publish/documentation
FAQ: http://ez.no/ez_publish/documentation/faq

Scot Wilcoxon

Thursday 15 May 2003 9:56:45 pm

Another for the collection. I just stumbled across
{$DesignKeys:used|attribute(show)}
through a hint in Demo template code, although I can't find it documented. The Wiki has DesignKeys in the todo wish list as undocumented. If I understand the notation, "DesignKeys" is a namespace which contains the variable "used". Whatever "used" means...I think it is not an abbreviation for "used up", so probably "used by" something. Something.

eZ debug

Timing: Jan 18 2025 02:21:57
Script start
Timing: Jan 18 2025 02:21:57
Module start 'content'
Timing: Jan 18 2025 02:21:57
Module end 'content'
Timing: Jan 18 2025 02:21:57
Script end

Main resources:

Total runtime0.7521 sec
Peak memory usage4,096.0000 KB
Database Queries204

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0071 587.7266180.8359
Module start 'content' 0.00710.6274 768.5625625.5703
Module end 'content' 0.63450.1175 1,394.1328337.0625
Script end 0.7520  1,731.1953 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00430.5702210.0002
Check MTime0.00160.2081210.0001
Mysql Total
Database connection0.00080.102110.0008
Mysqli_queries0.678490.20692040.0033
Looping result0.00180.23892020.0000
Template Total0.722496.120.3612
Template load0.00240.318220.0012
Template processing0.720095.736220.3600
Template load and register function0.00020.021310.0002
states
state_id_array0.00090.122110.0009
state_identifier_array0.00070.087120.0003
Override
Cache load0.00200.2636210.0001
Sytem overhead
Fetch class attribute can translate value0.00110.151050.0002
Fetch class attribute name0.00120.160760.0002
XML
Image XML parsing0.00130.168350.0003
class_abstraction
Instantiating content class attribute0.00000.001560.0000
General
dbfile0.00410.5461280.0001
String conversion0.00000.001030.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
5content/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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 16
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs