overriding arbitary templates

Author Message

Jonas Maurus

Friday 27 April 2007 8:41:26 am

Hi

In my pagelayout.tpl I include a menu template that recursively loads a list of content nodes, i.e.

{include uri="design:menu/menu.tpl"}

Now, what I'd like to do is to override menu.tpl in subsections of the site. I tried to do the following in settings/siteaccess/mysiteaccess/override.ini.append.php:

[menu_press]
Source=menu/menu.tpl
MatchFile=menu/press_menu.tpl
Subdir=templates
Match[section]=6

unfortunately, that doesn't work. /design/mydesign/override/templates/menu/press_menu.tpl is never used.

Why? It seems that override conditions are only available for the templates that have been defined in the "standard" design, however, defining my template there also doesn't work.

How can I make this work? or where in the kernel source code is the list of applicable override conditions?

I hope that someone can help me there...

best regards from Germany,
Jonas

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