General template conceptual and process tutorial

Author Message

Sol Millin

Monday 14 April 2003 1:26:33 am

Can I find this? (apart from what's currently in the manual and sdk).

What would be great is a 'top down' architectual view of how ez3 assembles and processes an output page...

Just psuedo code... nothing too deep.

Also definitions including ez template tags, eg. 'section' which seems to have two meanings...

section in admin is a major part of a site as selected by main menu button (eg demo site sections)

section in templates appears to be a section of output on the constructed html page.

Then a few real examples would be great, perhaps keyed to the demo site.

We could then become much more effective.

With thanks,

Sol Millin
byron bay
australia

Karsten Jennissen

Monday 14 April 2003 5:34:09 am

As for your first question, I don't quite see the admin use for a technical run down on how ez publish creates a page. But if the ez crew finds the time?!

Well, you are right about the term section. Site sections are used for design switching and permission control. The template function (operator?) section is used for various tasks in the control of the templates.

Find some more info on templates here:
http://ez.no/developer/ez_publish_3/documentation/ez_publish_3/terminology_basics/template_language

There is an overview over all template functions in the sdk (linked from the above).

Karsten

Jan Borsodi

Monday 14 April 2003 7:11:21 am

An overview of the template process is interesting but at the moment we don't have the time for this to make the 3.1 release.
We can look at this for later 3.x releases.

--
Amos

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

Paul Borgermans

Monday 14 April 2003 9:51:07 am

>What would be great is a 'top down' architectual view of how ez3 assembles and processes an output page...

Right. Rumours from our internal devel team suggest lots of things come from the ezhttp persistent object class.

But it is not yet clear to us either.

Paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

Sol Millin

Monday 14 April 2003 2:44:42 pm

Thanks guys...

I really appreciate the feedback.

... and also your patience with someone struggle to get to grips with ez3 concepts...

As I have ez3 setup I cannot access parts of the sdk locally eg.

http://sdk.demo.ez3/sdk/eztemplate/view/function_section/

but I have been told this will be tidied up in 3.1

Luckily I've got ADSL to ez.no!

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 18 2025 04:59:32
Script start
Timing: Jan 18 2025 04:59:32
Module start 'layout'
Timing: Jan 18 2025 04:59:32
Module start 'content'
Timing: Jan 18 2025 04:59:33
Module end 'content'
Timing: Jan 18 2025 04:59:33
Script end

Main resources:

Total runtime0.8202 sec
Peak memory usage4,096.0000 KB
Database Queries67

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0054 588.0391152.6406
Module start 'layout' 0.00540.0025 740.679739.4766
Module start 'content' 0.00790.8110 780.1563633.4922
Module end 'content' 0.81890.0013 1,413.648412.1250
Script end 0.8202  1,425.7734 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.4044160.0002
Check MTime0.00140.1714160.0001
Mysql Total
Database connection0.00090.106710.0009
Mysqli_queries0.758492.4646670.0113
Looping result0.00060.0676650.0000
Template Total0.790296.320.3951
Template load0.00240.289920.0012
Template processing0.787896.046420.3939
Template load and register function0.00020.026910.0002
states
state_id_array0.00120.145610.0012
state_identifier_array0.00090.111420.0005
Override
Cache load0.00210.2513400.0001
Sytem overhead
Fetch class attribute can translate value0.00060.072640.0001
Fetch class attribute name0.00130.159070.0002
XML
Image XML parsing0.00130.159540.0003
class_abstraction
Instantiating content class attribute0.00000.001670.0000
General
dbfile0.00100.1175240.0000
String conversion0.00000.001140.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
5content/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
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 19
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs