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.

eZ debug

Timing: Jan 19 2025 09:39:09
Script start
Timing: Jan 19 2025 09:39:09
Module start 'layout'
Timing: Jan 19 2025 09:39:09
Module start 'content'
Timing: Jan 19 2025 09:39:11
Module end 'content'
Timing: Jan 19 2025 09:39:11
Script end

Main resources:

Total runtime1.7549 sec
Peak memory usage4,096.0000 KB
Database Queries62

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0066 589.2734152.6406
Module start 'layout' 0.00660.0044 741.914139.4766
Module start 'content' 0.01101.7427 781.3906590.2734
Module end 'content' 1.75360.0013 1,371.664112.1406
Script end 1.7549  1,383.8047 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00370.2098160.0002
Check MTime0.00140.0776160.0001
Mysql Total
Database connection0.00100.059310.0010
Mysqli_queries1.693796.5104620.0273
Looping result0.00060.0328600.0000
Template Total1.711197.520.8555
Template load0.00220.123920.0011
Template processing1.708997.374820.8544
Template load and register function0.00020.010410.0002
states
state_id_array0.00310.178710.0031
state_identifier_array0.00270.155220.0014
Override
Cache load0.00180.1027280.0001
Sytem overhead
Fetch class attribute can translate value0.00060.031530.0002
Fetch class attribute name0.00140.077160.0002
XML
Image XML parsing0.00120.069830.0004
class_abstraction
Instantiating content class attribute0.00000.000860.0000
General
dbfile0.00100.0571230.0000
String conversion0.00000.000740.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
7content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 19
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs