In what order are override templates loaded?

Author Message

Gabriel Ambuehl

Saturday 25 February 2006 7:20:36 am

I have the following situation:

extension1 defines a new node/view/rss.tpl template that outputs RSS for a given node.

Now I'd like to override this for a given class in extension2. While I can put all overrides into override.ini in that extension, it won't work with that particular override for some reason. If I put the VERY same override code into siteaccess it ezpublish happily loads the correct template though (which still lives under extension2!).

Is there even a way to do what I want (i.e. overriding a node view defined by one extension in another extension)?

Visit http://triligon.org

Xavier Dutoit

Saturday 25 February 2006 8:32:47 am

Not to my knowledge.

Try not creating too many extensions ? ;)

http://www.sydesy.com

Gabriel Ambuehl

Saturday 25 February 2006 8:52:17 am

Software should be modular no?

Maybe it depends on the order the extensions themselves get loaded....

Visit http://triligon.org

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:42:36
Script start
Timing: Jan 19 2025 03:42:36
Module start 'layout'
Timing: Jan 19 2025 03:42:36
Module start 'content'
Timing: Jan 19 2025 03:42:37
Module end 'content'
Timing: Jan 19 2025 03:42:37
Script end

Main resources:

Total runtime0.7348 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0055 589.2891152.6406
Module start 'layout' 0.00550.0037 741.929739.4766
Module start 'content' 0.00920.7245 781.4063527.0078
Module end 'content' 0.73370.0011 1,308.41418.2813
Script end 0.7348  1,316.6953 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.4163160.0002
Check MTime0.00130.1743160.0001
Mysql Total
Database connection0.00060.077710.0006
Mysqli_queries0.689693.8430570.0121
Looping result0.00060.0787550.0000
Template Total0.700395.320.3502
Template load0.00180.247420.0009
Template processing0.698595.056720.3493
Template load and register function0.00020.031610.0002
states
state_id_array0.00080.115410.0008
state_identifier_array0.00140.192720.0007
Override
Cache load0.00140.1967140.0001
Sytem overhead
Fetch class attribute can translate value0.00080.108420.0004
Fetch class attribute name0.00140.186140.0003
XML
Image XML parsing0.00060.081120.0003
class_abstraction
Instantiating content class attribute0.00000.001440.0000
General
dbfile0.00070.0967160.0000
String conversion0.00000.001240.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
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 9
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs