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.

eZ debug

Timing: Jan 19 2025 03:21:44
Script start
Timing: Jan 19 2025 03:21:44
Module start 'layout'
Timing: Jan 19 2025 03:21:44
Module start 'content'
Timing: Jan 19 2025 03:21:44
Module end 'content'
Timing: Jan 19 2025 03:21:44
Script end

Main resources:

Total runtime0.0196 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0074 589.2813152.6406
Module start 'layout' 0.00750.0038 741.921939.4766
Module start 'content' 0.01130.0054 781.398489.4609
Module end 'content' 0.01660.0029 870.859430.3047
Script end 0.0196  901.1641 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002814.1104140.0002
Check MTime0.00126.0200140.0001
Mysql Total
Database connection0.00146.912910.0014
Mysqli_queries0.003919.735130.0013
Looping result0.00000.111910.0000
Template Total0.002010.110.0020
Template load0.00105.301110.0010
Template processing0.00094.774410.0009
Override
Cache load0.00073.371910.0007
General
dbfile0.00094.643080.0001
String conversion0.00000.046240.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs