Create a template override in a different folder

Author Message

Salvatore Guarino

Tuesday 26 July 2005 12:00:51 am

Hi!
There is a way to create an override of a template and save it in a different folder? (default folder is, for example, "/design/corporate/override/templates", instead I want to save it in /design/corporate/override/templates/full).
Tanks,

Salvatore

Eivind Marienborg

Tuesday 26 July 2005 12:05:17 am

Yeah, that's no problem.

But be aware that you have to specify the subdir in the MatchFile paramater of override.ini.append, and not the subdir:

[override_name]
Source=node/view/full.tpl
Matchfile=full/yourtemplate.tpl
Subdir=templates

Salvatore Guarino

Tuesday 26 July 2005 12:31:57 am

Tank you very much!
Bye,
Salvatore

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 18 2025 19:04:16
Script start
Timing: Jan 18 2025 19:04:16
Module start 'layout'
Timing: Jan 18 2025 19:04:16
Module start 'content'
Timing: Jan 18 2025 19:04:17
Module end 'content'
Timing: Jan 18 2025 19:04:17
Script end

Main resources:

Total runtime0.9492 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0172 589.4922152.6406
Module start 'layout' 0.01730.0054 742.132839.4766
Module start 'content' 0.02270.9250 781.6094511.9375
Module end 'content' 0.94760.0015 1,293.546912.1250
Script end 0.9491  1,305.6719 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00420.4442160.0003
Check MTime0.00190.1970160.0001
Mysql Total
Database connection0.00320.341610.0032
Mysqli_queries0.879592.6581570.0154
Looping result0.00080.0886550.0000
Template Total0.894294.220.4471
Template load0.00230.238720.0011
Template processing0.892093.974320.4460
Template load and register function0.00020.020910.0002
states
state_id_array0.00220.234210.0022
state_identifier_array0.00140.150120.0007
Override
Cache load0.00180.1940180.0001
Sytem overhead
Fetch class attribute can translate value0.00120.126120.0006
Fetch class attribute name0.00190.204250.0004
XML
Image XML parsing0.00260.273020.0013
class_abstraction
Instantiating content class attribute0.00000.001260.0000
General
dbfile0.00530.5634230.0002
String conversion0.00000.001240.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
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.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: 14
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs