Overriding template

Author Message

Ted Striker

Wednesday 17 June 2009 1:42:10 am

I older versions of eZ Publish I used to override templates by recreating the same tree structure of the template in the <b>design/site_name/override/template</b> directory.

Now on eZ Publish 4.0 I want to override the <b>ezbinaryfile.tpl</b> by a custom template and put my template (basically the same one with little changes) in :

 
/design/site_name/override/templates/content/datatype/edit/ezbinaryfile.tpl

Unfortunately this system that works perfectly in 3.9 sites I have running, will not work now. What am I doing wrong? Any help?

Thank you in advance!

Can you feel it Mr. Anderson? Closing in on you? Oh I can, I really should thank you after all. It was, after all, it was your life that taught me the purpose of all life. Purpose of life is to end.

André R.

Wednesday 17 June 2009 3:21:31 am

Just put it in tempaltes folder instead of override/templates, 4.x only allows override (override.ini) templates in the override folder.

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 31 2025 01:16:29
Script start
Timing: Jan 31 2025 01:16:29
Module start 'layout'
Timing: Jan 31 2025 01:16:29
Module start 'content'
Timing: Jan 31 2025 01:16:29
Module end 'content'
Timing: Jan 31 2025 01:16:29
Script end

Main resources:

Total runtime0.0235 sec
Peak memory usage4,096.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0048 588.1250151.2109
Module start 'layout' 0.00480.0038 739.3359220.6719
Module start 'content' 0.00860.0134 960.0078997.7891
Module end 'content' 0.02190.0016 1,957.796929.9922
Script end 0.0235  1,987.7891 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002610.8955140.0002
Check MTime0.00104.4614140.0001
Mysql Total
Database connection0.00083.523110.0008
Mysqli_queries0.00219.115230.0007
Looping result0.00000.093210.0000
Template Total0.00104.510.0010
Template load0.00083.561610.0008
Template processing0.00020.867310.0002
Override
Cache load0.00062.422710.0006
General
dbfile0.00021.047780.0000
String conversion0.00000.037540.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_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