overriding template

Author Message

Roberto Sacchi

Thursday 05 February 2009 6:43:02 am

I've overrided frontpage.tpl in my extension: I put that file in "extension/myextension\design\ezwebin\override\templates\frontpage.tpl.

I write in override.ini.append this condition:

[frontpage override]
Source=node/view/full.tpl
MatchFile=frontpage.tpl
Subdir=templates
Match[class_identifier]=frontpage

But It doesn't work. The problem is that there's another override of the same template in another extension in "extension/ezwebin/design/ezwebin/override/templates/full/frontpage.tpl" that probably has higher priority.

How to change that?

Rob

p.s: Of course I've read this: http://ez.no/doc/ez_publish/technical_manual/4_0/templates/the_template_override_system

justin kazadi

Thursday 05 February 2009 7:57:18 am

Hi,
if i have understand,
you had created an design extension called myextension for an existing design<<ezwebin>>.

are you sure that your extension is activate?
could you tell me where are you store your override.ini?
you must store it in your case in:

extension/myextension/design/settings/override.tpl.

.

best regards

The theory is when we know everything and nothing works.
The practice is when everything works and nobody knows why.
If the practice and theory are met, nothing works and we do not know why.

Albert Einstein

Roberto Sacchi

Thursday 05 February 2009 8:49:33 am

My extension is active.

I didn't choose "ezwebin" as design, I just try to override the template when debug was on, and the flag "show used template" was selected, and ezPublish created a copy of template.tpl in that directory (myext/design/ezwebin/override/template...)

Actually in design I've "ezwebin" and "standard".
Do I need them? I'm a bit confused.

However, my override.ini.append.php is in /extension/myextension/settings/ with other ini file...

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

Main resources:

Total runtime0.6987 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.0053 589.2422152.6094
Module start 'layout' 0.00530.0027 741.851639.4141
Module start 'content' 0.00800.6895 781.2656535.0781
Module end 'content' 0.69750.0012 1,316.343812.1875
Script end 0.6987  1,328.5313 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.4508160.0002
Check MTime0.00130.1854160.0001
Mysql Total
Database connection0.00090.128410.0009
Mysqli_queries0.652093.3174570.0114
Looping result0.00050.0736550.0000
Template Total0.669395.820.3346
Template load0.00180.252620.0009
Template processing0.667595.536620.3338
Template load and register function0.00020.030510.0002
states
state_id_array0.00090.129510.0009
state_identifier_array0.00150.208520.0007
Override
Cache load0.00150.2166270.0001
Sytem overhead
Fetch class attribute can translate value0.00060.093020.0003
Fetch class attribute name0.00090.133440.0002
XML
Image XML parsing0.00050.078020.0003
class_abstraction
Instantiating content class attribute0.00000.001140.0000
General
dbfile0.00080.1074160.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
7content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.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: 7

Time used to render debug report: 0.0001 secs