Don't understand anything in template management. ;)

Author Message

Pierre Rigal

Thursday 20 January 2005 1:59:50 am

Hello,
I'm french so excuse my poor english ;)

I read the entire documentation that you provide but I don't understand the template management of EzPublish.
If someone has some usefull links to share ...

Few questions :

(knowing that I have successfully set my "mysite" settings...)

=> I have 4 directories in my Design folder :
- admin
- base
- mysite
- standard

I found that EzPublish read in order the standard folder, then the base one and the mysite one. Is taht right ?

If I create a pagelayout.tpl in mysite/templates, it is successfully found and read. If I understand well, to successfully found and read it, EzPublish has firstly read the settings and found that the design is the "mysite" one.
So, now I want to know why there is a override/templates folder ? If i create a pagelayout.tpl in this folder, which one will be read first ? The mysite/template one or the mysite/override/template one ?

Then if I have a second template "secondtemplate.tpl" in the mysite/template folder which is called by the mysite/template/pagelayout.tpl template. Will it work ? Or will I put it in the override/template folder ?

Thanks ! Thanks !

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

Main resources:

Total runtime0.9558 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0104 590.4375152.6406
Module start 'layout' 0.01040.0044 743.078139.4766
Module start 'content' 0.01480.9394 782.5547409.1328
Module end 'content' 0.95420.0015 1,191.68758.1250
Script end 0.9558  1,199.8125 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00440.4645160.0003
Check MTime0.00140.1452160.0001
Mysql Total
Database connection0.00160.163510.0016
Mysqli_queries0.907594.9504460.0197
Looping result0.00050.0473440.0000
Template Total0.914895.720.4574
Template load0.00220.227420.0011
Template processing0.912695.484020.4563
Template load and register function0.00020.022910.0002
states
state_id_array0.00280.297910.0028
state_identifier_array0.00130.135420.0006
Override
Cache load0.00180.1853190.0001
Sytem overhead
Fetch class attribute can translate value0.00100.099810.0010
Fetch class attribute name0.00060.066610.0006
XML
Image XML parsing0.00010.010910.0001
class_abstraction
Instantiating content class attribute0.00000.000410.0000
General
dbfile0.00060.0656100.0001
String conversion0.00000.001340.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
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 11
 Number of unique templates used: 5

Time used to render debug report: 0.0002 secs