Simple doubt about template overrides

Author Message

Leandro Villani

Tuesday 27 December 2005 11:08:54 am

Hi,

Should I place my override templates in <b>\design\<siteaccess>\override\templates</b> or in <b>\design\<siteaccess>\templates</b>?

Apparently, both folders are working, but what is the recomendation?

Thanks,
Leandro.

Paul Borgermans

Tuesday 27 December 2005 12:03:30 pm

Hi Leandro,

There is no real recommendation, but this is how I use it:

\design\<siteaccess>\templates is treated as a default override for the admin/base/standard templates and page-layout stuff. For example, in collaborative sites with lots (main) editing being done on the user side, I would override the general edit templates also there.

And then for class/node/subtree/section specific things, use the \design\<siteaccess>\override\templates as these have priority above all default and the above locations

hth

--paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

Leandro Villani

Wednesday 28 December 2005 3:05:06 am

Thank you Paul.

Kristian Hole

Thursday 29 December 2005 12:34:50 am

Hi

The recommendation is:

Templates with no overriderules in override.ini(append.php) goes in:
design/<design>/templates/*

Templates which have overriderules in override.ini(append.php) goes in:
design/<design>/override/templates/*

Please note that <siteaccess> != <design>. When you do a normal installation of eZ publish it is, but it does not have to be that way. The design for a siteaccess is specified in settings/siteaccess/<siteaccess>/site.ini.append.php

[DesignSettings]
SiteDesign=<design>

Kristian

http://ez.no/ez_publish/documenta...tricks/show_which_templates_are_used
http://ez.no/doc/ez_publish/techn...te_operators/miscellaneous/attribute

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