Seeing which templates and styles were used for a given page

Author Message

Chuck Knight

Thursday 08 January 2004 9:26:34 am

My objective: seeing which templates are used where and when

The reference at http://ezwiki.blanko.info/index.php/3XHT_SeeTmpls indicates:

"You have to delete the cached files (var/cache) and make the following settings in settings/site.ini.php:

[TemplateSettings]
AutoloadPath=lib/eztemplate/classes/;kernel/common/
Debug=enabled
NodeTreeCaching=disabled
ProcessCaching=disabled

[DebugSettings]
DebugByIP=enabled
Debug=inline
DebugRedirection=disabled"

However, after doing that (on the /settings/override/settings.ini.append.php directory, following the advice in the original settings/site.ini), and clearing the cache, I run eZ Publish (3.3) and no debugghing info is printed on screen.

Questions:
* Am I doing something wrong, or are the instructions themselves that are wrong?
* If things have changed for 3.3, how do I get to achieve the same objective? Repeating: my objective is to see exactly which templates and stylesheets were used to display a certain page.

As usual, any help will be kindly appreciated

Cheers
ck

Chuck Knight

Thursday 08 January 2004 10:06:18 am

The problem has been fixed. Following other indications present in a different source (Building an eZ Publish site), I just edited /settings/override/site.ini.append.php (unsecured site), and added:

[TemplateSettings]
TemplateCache=disabled
Debug=enabled

It would seem that the indications in the Wiki are outdated... Perhaps a documentation contributor can make clarifications to avoid confusing newbies like me?

Cheers
ck

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 08:05:50
Script start
Timing: Jan 31 2025 08:05:50
Module start 'layout'
Timing: Jan 31 2025 08:05:50
Module start 'content'
Timing: Jan 31 2025 08:05:50
Module end 'content'
Timing: Jan 31 2025 08:05:50
Script end

Main resources:

Total runtime0.0141 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.0043 588.3906151.2422
Module start 'layout' 0.00430.0023 739.632836.7109
Module start 'content' 0.00660.0062 776.343890.1094
Module end 'content' 0.01290.0012 866.453129.9922
Script end 0.0141  896.4453 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002215.3873140.0002
Check MTime0.00107.1760140.0001
Mysql Total
Database connection0.00064.477210.0006
Mysqli_queries0.002215.427930.0007
Looping result0.00000.084410.0000
Template Total0.00096.210.0009
Template load0.00074.860610.0007
Template processing0.00021.288610.0002
Override
Cache load0.00043.144710.0004
General
dbfile0.002316.333180.0003
String conversion0.00000.062540.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