how do I know which template is being used?

Author Message

Shaun Ellis

Friday 19 September 2003 10:49:49 am

I'm having some problems figuring out which templates are being used, particularly in how I override the full.tpl template. I've read the documentation on templates and edited override.ini, but when I make changes I'm not getting any results. I have caching off and have deleted the cache files.

It would be a lot easier if the templates used to render the page were displayed when debugging is enabled. Then I would know exactly which template file I needed to override and/or replace. Is there some way to determine this?

Thanks,
Shaun

RW Wood

Saturday 20 September 2003 1:09:15 pm

Turn on debugging in your site.ini.append, clear the cache, and reload the page. You should see what template is producing what part of the display. Below are the settings.

[DebugSettings]
DebugOutput=disabled
DebugByIP=enabled
# A array with IP addresses which will get debug information
DebugIPList[]
# Examples
#DebugIPList[]=1.2.3.4
#DebugIPList[]=192.0.0.42
Debug=inline
DebugRedirection=disabled

[TemplateSettings]
Debug=enabled
TemplateCache=disabled

See also:
http://ez.no/developer/ez_publish_3/forum/setup_design/custom_template_again#msg34774

HTH,
RWW

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 31 2025 04:26:36
Script start
Timing: Jan 31 2025 04:26:36
Module start 'layout'
Timing: Jan 31 2025 04:26:36
Module start 'content'
Timing: Jan 31 2025 04:26:36
Module end 'content'
Timing: Jan 31 2025 04:26:36
Script end

Main resources:

Total runtime0.0217 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.0090 588.2734151.2266
Module start 'layout' 0.00900.0040 739.500036.6797
Module start 'content' 0.01300.0071 776.179790.0781
Module end 'content' 0.02010.0016 866.257829.9922
Script end 0.0216  896.2500 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002410.9066140.0002
Check MTime0.00104.8425140.0001
Mysql Total
Database connection0.002411.053910.0024
Mysqli_queries0.004721.620830.0016
Looping result0.00000.069310.0000
Template Total0.00125.610.0012
Template load0.00083.781410.0008
Template processing0.00041.725210.0004
Override
Cache load0.00052.343210.0005
General
dbfile0.00167.484780.0002
String conversion0.00000.042940.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