Forums / General / Template Namespaces

Template Namespaces

Author Message

Michael Zeidler

Monday 20 September 2004 9:38:53 am

Hallo,

after having a read on this (http://ez.no/ez_publish/documentation/development/libraries/ez_template/basics/namespaces_), which should explain what namespaces are and how they can be used, i got confused. I cant encode the first "table", what for sure isnt a table. Further this unreal table is rather driving me crazy than enlightening me, cause its seems not to be real code from a template.
Besides it would be nice, when someone of the eZ team can revise this (someone had the same problem like me and posted a comment under this articel but with no reaction)

thanks.
mike

Please explain
THE "TABLE":

Code
Root  
Current

{$variable}
First
First

{section name=Space}
First
First:Space

  {$variable}
First
First:Space

  {$First:Space:item}
First
First:Space

  {section name=Room}
First
First:Space:Room

    {$First:Space:Room:item}
First
First:Space:Room

  {/section}
First
First:Space

{/section}
First
First

-------------------------------------------------------------------------------------------
join #ezpublish on irc.freenode.org

Frederik Holljen

Tuesday 21 September 2004 3:31:08 am

I completely rewrote the documentation page. Can you take another look and see if you get it now?

Michael Zeidler

Tuesday 21 September 2004 10:34:17 pm

Hello Frederik,
very kind of you for clearing up this article about namespaces. This topic is much better understandable by the given example which is the application of the "table" above.
But another tip: In the second table give some (one or two) examples of how the attribute name is used by the listed functions, by adding a second column ({section name=Num loop=5}..), if not i would convert this table to a list. Just to clear things up in the direction you read a text.
Thanks anyway!

with kind regards,
mike aka cupic

-------------------------------------------------------------------------------------------
join #ezpublish on irc.freenode.org

eZ debug

Timing: Jan 18 2025 19:36:15
Script start
Timing: Jan 18 2025 19:36:15
Module start 'content'
Timing: Jan 18 2025 19:36:15
Module end 'content'
Timing: Jan 18 2025 19:36:15
Script end

Main resources:

Total runtime0.7433 sec
Peak memory usage4,096.0000 KB
Database Queries194

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0049 587.6016180.8516
Module start 'content' 0.00490.6369 768.4531550.0313
Module end 'content' 0.64180.1014 1,318.4844332.7656
Script end 0.7433  1,651.2500 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.4872210.0002
Check MTime0.00140.1883210.0001
Mysql Total
Database connection0.00070.094710.0007
Mysqli_queries0.683992.00541940.0035
Looping result0.00170.22331920.0000
Template Total0.717796.620.3589
Template load0.00200.270520.0010
Template processing0.715796.283420.3578
Template load and register function0.00010.015510.0001
states
state_id_array0.00080.103410.0008
state_identifier_array0.00060.080620.0003
Override
Cache load0.00160.2213230.0001
Sytem overhead
Fetch class attribute can translate value0.00100.141130.0003
Fetch class attribute name0.00110.148150.0002
XML
Image XML parsing0.00110.152330.0004
class_abstraction
Instantiating content class attribute0.00000.001360.0000
General
dbfile0.00200.2704330.0001
String conversion0.00000.000630.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
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
7content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
5content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 21
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs