Share » Forums » General » Help Needed with getting a template...

Help Needed with getting a template over ride to work.

Help Needed with getting a template over ride to work.

Thursday 02 April 2009 5:42:34 am - 2 replies

Author Message

Neo Pixel

Friday 03 April 2009 1:39:55 am

I've had the same problem and as a last resort I've edited the actual tpl file within ezwebin and abandoned using the override template.

That's obviously not the way to do things within ezp but needs must.

Can anyone shed some light on this problem?

Thanks in advance :-)

Asking stupid questions so you don't have to!

André R.

Friday 03 April 2009 6:09:43 am

extension/ezwebin/design/ezwebin/override/templates/full/folder.tpl is already an override, you can not override an override using override.ini rules.

There are two choices:
1. placement override, override the above template in all conditions it is used (full view off all folder objects) by copying the template to your own design that has higher priority(see settings/siteaccess/*/site.ini Design settings) AND/OR same design name 'ezwebin' in your own extension that has higher priority(see setting/override/site.ini extension settings).

2. override.ini override, if you want just a specific node(or some other specific rule) to use another template then folder template, then add an override rule that looks like this:

[full_frontpage]
Source=node/view/full.tpl
MatchFile=full/root_node_2.tpl
Subdir=templates
Match[node]=2

Notice the Source, if you enable debug output and [TemplateSettings]ShowUsedTemplates=enabled (both in site.ini) it will be a lot easier to understand and debug.

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu