Forums / Setup & design / Simple doubt about template overrides

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

eZ debug

Timing: Jan 19 2025 11:35:45
Script start
Timing: Jan 19 2025 11:35:45
Module start 'content'
Timing: Jan 19 2025 11:35:45
Module end 'content'
Timing: Jan 19 2025 11:35:45
Script end

Main resources:

Total runtime0.3062 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0066 589.0703180.8281
Module start 'content' 0.00660.0044 769.898498.0234
Module end 'content' 0.01100.2952 867.9219526.0781
Script end 0.3062  1,394.0000 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00351.1491200.0002
Check MTime0.00140.4715200.0001
Mysql Total
Database connection0.00080.252110.0008
Mysqli_queries0.260385.00741410.0018
Looping result0.00130.42931390.0000
Template Total0.294996.310.2949
Template load0.00090.283810.0009
Template processing0.294095.996210.2940
Override
Cache load0.00060.193010.0006
Sytem overhead
Fetch class attribute can translate value0.00090.303710.0009
XML
Image XML parsing0.00030.089810.0003
General
dbfile0.00371.2050200.0002
String conversion0.00000.002330.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs