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.