Forums / Developer / overriding template

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...