How pages get rendered

Author Message

John Hoskins

Thursday 27 March 2003 1:55:52 pm

I am trying to understand how eZ Publish 3 chooses which page layout to use.

So if get it right - when the request is sent to index.php. It gets the object and its section.
If <yourdesign>/override/templates/ has a matching pagelayout_section_X.tpl, it is used.
If <yourdesign>/templates/ has pagelayout.tpl, it is used.
If those don't exist it just uses /standard/templates/pagelayout.tpl.

I assume that user and admin are just other examples of templating and do not interact. So that when you look at stuff in the demo its using just the stuff in the demo or standard if it is not exist in the demo template.

Thanks for all the good work, team ez.

Matthew Rat

Thursday 03 April 2003 1:14:14 pm

I am having trouble figuring out how assigning a new section to your folder(s) in the admininstrative piece actually changes the look of that site. How is the section name/ID/whatever tied to some sort of page layout or such?

Karsten Jennissen

Thursday 03 April 2003 11:10:11 pm

Hi,

the answer on how to assign sections is here:

http://ez.no/sdk/tutorials/view/permissions/

Basically, you go the the set-up section of the admin interface create the sections and then click on assign, browse folders and select to assign to that object+subfolders/objects

As for the sections <-> layout, it is exactly as John said. In site.ini(.php) you specify which design folder is used for your site. You would create a new design folder for any custom site you make. First, ez publish looks for
<yourdesign>/override/templates/pagelayout_section_N.tpl where N is the current section number. If not found it looks for <yourdesign>/templates/pagelayout.tpl for the general layout/css etc.

If that is not found, it looks for the default design specified in the site.ini(.php). That should be "./standard/...".

For more info take a look at
http://ezwiki.blanko.info/index.php/Custom%20designs%20-%20directory%20structure%20explained%20%283.x%29

Karsten

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 01:15:39
Script start
Timing: Jan 18 2025 01:15:39
Module start 'layout'
Timing: Jan 18 2025 01:15:39
Module start 'content'
Timing: Jan 18 2025 01:15:41
Module end 'content'
Timing: Jan 18 2025 01:15:41
Script end

Main resources:

Total runtime1.9359 sec
Peak memory usage4,096.0000 KB
Database Queries59

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0046 587.9063152.6250
Module start 'layout' 0.00460.0044 740.531339.4453
Module start 'content' 0.00901.9251 779.9766504.6563
Module end 'content' 1.93410.0017 1,284.63288.1719
Script end 1.9359  1,292.8047 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.1834160.0002
Check MTime0.00140.0713160.0001
Mysql Total
Database connection0.00060.029810.0006
Mysqli_queries1.884397.3326590.0319
Looping result0.00080.0395570.0000
Template Total1.887497.520.9437
Template load0.00200.102020.0010
Template processing1.885497.392620.9427
Template load and register function0.00020.009010.0002
states
state_id_array0.00210.107110.0021
state_identifier_array0.00240.124720.0012
Override
Cache load0.00160.0824230.0001
Sytem overhead
Fetch class attribute can translate value0.00090.047530.0003
Fetch class attribute name0.00120.061030.0004
XML
Image XML parsing0.00040.020030.0001
class_abstraction
Instantiating content class attribute0.00000.000630.0000
General
dbfile0.00110.0582100.0001
String conversion0.00000.000440.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
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/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
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 14
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs