How overriding templates?

Author Message

Adolfo Barragán

Monday 08 September 2003 3:08:09 am

I've create a new siteaccess and a new sitedesign (master).

I follow http://ez.no/developer/ez_publish_3/documentation/incoming/14_tutorial_make_a_new_design_from_demo

After I create my settings/siteaccess/master/override.ini.append and I put in this code:

[category]
Source=node/view/full.tpl
MatchFile=category.tpl
Subdir=templates
Match[class]=14

If I put "category.tpl" in design/master/override/templates override don't work, because I receive the standard template (and var/cache/override/anyname.php don't show any sentence for override nod/view/full with "category.tpl")

But if I put "category.tpl" in design/master/templates override work Ok.

Where should I put my templates for overriding standard templates?

Thanks in advance

Bjørn Kaarstein

Monday 08 September 2003 4:38:50 am

design/master/override/templates should be the correct directory to put your override templates.

Have you remembered to clear your cache?

Also, it sometimes can be a confusing matter on what to match in your override.ini.append.
Try to match directly on a node which is an instance of your class 14, to see if that works.

Regards Bjørn

Adolfo Barragán

Monday 08 September 2003 5:00:37 am

> Have you remembered to clear your cache?

Yes, I'm tired of clear my cache, I'm tired to fight with siteaccess and sitedesign and ... I have a spelling mistake!!! Sorry, I'm stupid. :-(

But I still have a problem, can you see my other message (I'm going crazy with siteaccess and sitedesign)

Thanks

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.