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

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 06:13:44
Script start
Timing: Jan 31 2025 06:13:44
Module start 'layout'
Timing: Jan 31 2025 06:13:44
Module start 'content'
Timing: Jan 31 2025 06:13:44
Module end 'content'
Timing: Jan 31 2025 06:13:44
Script end

Main resources:

Total runtime0.0156 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0045 588.0078151.1953
Module start 'layout' 0.00450.0029 739.203136.6328
Module start 'content' 0.00740.0062 775.835990.2188
Module end 'content' 0.01370.0017 866.054733.9922
Script end 0.0154  900.0469 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002415.3937140.0002
Check MTime0.00116.8187140.0001
Mysql Total
Database connection0.00052.885310.0005
Mysqli_queries0.002616.461730.0009
Looping result0.00000.077810.0000
Template Total0.00128.010.0012
Template load0.00095.842210.0009
Template processing0.00032.111710.0003
Override
Cache load0.00063.846510.0006
General
dbfile0.001911.960680.0002
String conversion0.00000.044240.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