Which article.tpl is being used?

Author Message

Steven Stieng

Tuesday 08 June 2010 7:00:20 am

I'm trying to figure out which template full page article is using.
The page is created using the class 'article'.

Looking at the debug output, I can only see the list called: 'Templates used to render the page'. And the only thing coming near loading anything, is 'extension/ezwebin/design/ezwebin/templates/page_mainarea.tpl'.

Using Windows Explorer, I've search for all files called article.tpl in  'extension/ezwebin/design/ezwebin/', and tried adding the text "TEST" to each one, to see if this shows up on the page. But I get nothing.

I've switched off all cache.

Where can I edit article.tpl - or add a new article.tpl which will override the default one?

 

Greg McAvoy-Jensen

Tuesday 08 June 2010 4:25:19 pm

Steven,

What is the first entry under 'Templates used to render the page'? That is generally the full view template. You could try clearing the cache before looking at this output, as that will show more templates if caching is on (just in case some kind of caching is still enabled).

To override a template, look in settings/siteaccess/MYACCESS/override.ini.append.php. More on how to do that is here. Essentially, you'll want to create your custom design folder (in design/ or if you are comfortable doing so, in an extension you create an activate). Then make that design the site design in site.ini.append.php (same directory as above). In that design directory, create an override directory, and in it a templates directory, and perhaps in it a full directory. Create your template there, add an override rule in override.ini, and clear the caches.

Granite Horizon, Certified Developer of eZ Publish Web Solutions
Provider of the SaaS Solution Granite Horizon In The Cloud | http://granitehorizon.com/cloud
http://granitehorizon.com | +1 916 647 6350 | California USA | @granitegreg
Blog: http://granitehorizon.com/blog

Steven Stieng

Wednesday 09 June 2010 12:09:57 am

Ok, found it, thanks.

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 15 2025 08:52:12
Script start
Timing: Jan 15 2025 08:52:12
Module start 'layout'
Timing: Jan 15 2025 08:52:12
Module start 'content'
Timing: Jan 15 2025 08:52:14
Module end 'content'
Timing: Jan 15 2025 08:52:14
Script end

Main resources:

Total runtime1.5625 sec
Peak memory usage6,144.0000 KB
Database Queries58

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0120 685.6484183.6875
Module start 'layout' 0.01200.0035 869.335952.5625
Module start 'content' 0.01551.5453 921.89841,869.5469
Module end 'content' 1.56090.0016 2,791.445368.5391
Script end 1.5625  2,859.9844 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00640.4070160.0004
Check MTime0.00140.0901160.0001
Mysql Total
Database connection0.00130.082210.0013
Mysqli_queries1.499195.9379580.0258
Looping result0.00060.0408560.0000
Template Total1.522597.420.7612
Template load0.00390.250420.0020
Template processing1.518597.185120.7593
Template load and register function0.00170.109410.0017
states
state_id_array0.00100.063210.0010
state_identifier_array0.00200.125120.0010
Override
Cache load0.00360.2303220.0002
Sytem overhead
Fetch class attribute can translate value0.00060.037520.0003
Fetch class attribute name0.00190.124040.0005
XML
Image XML parsing0.00100.064620.0005
class_abstraction
Instantiating content class attribute0.00000.000840.0000
General
dbfile0.00190.1206180.0001
String conversion0.00000.000740.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
7content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/emphasize.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/emphasize.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/link.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/link.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 18
 Number of unique templates used: 8

Time used to render debug report: 0.0001 secs