Which templates are being used? (line templates)

Author Message

Christian Johansen

Wednesday 04 January 2006 1:34:27 pm

I'm having some headache trying to figure out which templates are being used sometimes... I turn on template debugging and it shows me all templates used, except for line templates.

I'm overriding the user registration template, and I started with a copy of the original. Somewhere in there it loops through all attributes and displays them like this:

{attribute_edit_gui attribute=$ContentObjectAttribute:item}

Is there a way to figure out which template is being used here? When it comes to the user account it starts displaying stuff like this:

User account
User ID:

113

Which I really don't like. But I can't override it if I don't know which template! I'm having the same problem figuring out which template to override for object relations in other templates as well. Any help is greatly appreciated.

Gurudutt Verma

Monday 09 January 2006 12:46:58 am

Hi!

Try following settings if this helps

[DebugSettings]
DebugOutput=enabled

[TemplateSettings]
ShowUsedTemplates=enabled

This will display all used templates in the debug output.

Christian Johansen

Monday 16 January 2006 7:12:33 am

Well, I tried those settings, but line templates are not output so I cannot figure out which ones are being used...

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 30 2025 00:45:55
Script start
Timing: Jan 30 2025 00:45:55
Module start 'layout'
Timing: Jan 30 2025 00:45:55
Module start 'content'
Timing: Jan 30 2025 00:45:55
Module end 'content'
Timing: Jan 30 2025 00:45:55
Script end

Main resources:

Total runtime0.0128 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.0046 588.3828151.2422
Module start 'layout' 0.00460.0023 739.625036.7109
Module start 'content' 0.00690.0046 776.335990.3438
Module end 'content' 0.01150.0013 866.679729.9922
Script end 0.0128  896.6719 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002317.5705140.0002
Check MTime0.00118.2747140.0001
Mysql Total
Database connection0.00075.319110.0007
Mysqli_queries0.002217.193630.0007
Looping result0.00000.078010.0000
Template Total0.00107.810.0010
Template load0.00085.848210.0008
Template processing0.00031.955010.0003
Override
Cache load0.00053.893210.0005
General
dbfile0.00086.455380.0001
String conversion0.00000.046440.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