How to override system templates

Author Message

Guillemain Nathalie

Thursday 30 August 2007 3:27:27 am

I need to override some systems templates such as shop templates, kernel error templates...
(ex : template/shop/basket.tpl)

How do I write the override.ini.append.php for thoses templates ?

Which match[] should I use ?

Do I have to put my templates in a special place or do I put them in the same place as usual ?

Thanks

Nathalie

André R.

Thursday 30 August 2007 4:01:38 am

Try matching the file used, like:

[show_override]
Source=shop/basket.tpl
MatchFile=my_special_basket.tpl
Subdir=templates

or you can use a simple design override, if you have a special design that have higher priority then ezwebin (I guess that is the one you use), you can just place a file in the same path in your own design.

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

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

Main resources:

Total runtime0.6771 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0063 587.9375152.6250
Module start 'layout' 0.00630.0033 740.562539.4453
Module start 'content' 0.00970.6655 780.0078524.3672
Module end 'content' 0.67520.0019 1,304.37508.1563
Script end 0.6770  1,312.5313 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.4823160.0002
Check MTime0.00140.2006160.0001
Mysql Total
Database connection0.00100.146510.0010
Mysqli_queries0.630893.1625540.0117
Looping result0.00060.0859520.0000
Template Total0.644995.220.3225
Template load0.00190.284920.0010
Template processing0.643094.959620.3215
Template load and register function0.00020.028110.0002
states
state_id_array0.00090.132510.0009
state_identifier_array0.00160.237820.0008
Override
Cache load0.00160.2371150.0001
Sytem overhead
Fetch class attribute can translate value0.00060.094220.0003
Fetch class attribute name0.00140.205930.0005
XML
Image XML parsing0.00090.132320.0004
class_abstraction
Instantiating content class attribute0.00000.001930.0000
General
dbfile0.00100.1430170.0001
String conversion0.00000.005340.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
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
1content/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/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: 10
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs