Beginners problem! Which template is used?

Author Message

Lasse Nordgulen

Monday 25 April 2005 3:13:16 pm

I have installed eZ Publish 3.5.1 and used the wizard to create a 'gallery' site. Then I set out to find out how the template hierarchy is set up and traversed during site accesses. I've bought the book 'Learing eZ publish 3' and have perused it in my search for the answer. The book is pretty clear in that the 'pagelayout.tpl' is always called. As there is no 'pagelayout.tpl' file in the design/gallery/* catalogs I'm led to believe that the file found under design/standard is the one to be used. However, when changing that file manually there is no change to how the page is rendered in the browser (and yes, I have flushed the caches) So, then there is is the template override system which might play me a trick or two. But, I find no reference whatsoever to any override for the pagelayout.tpl template. Can someone please enlighten me as to which pagelayout.tpl file my 'gallery' site uses??

LA$$E

Monday 25 April 2005 3:25:26 pm

Hi,

Add these lines to your site.ini.append.php file.

[TemplateSettings]
# Use either enabled to see which template files are loaded or disabled to supress debug
Debug=enabled

Then clear your cache using this command:

# ./bin/shell/clearcache.sh --var-subdir=cache --clear-all

Voila, all the template names are visible.

More info about clearcache.sh :
http://ez.no/ez_publish/documentation/customization/troubleshooting/your_changes_not_take_effect_or_new_nodes_not_appearing_

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.