making override tpl's... (newbie-question..)

Author Message

Jesper Haggren

Sunday 31 August 2003 4:09:28 pm

hi everybody;

after making a clean install of ez3 I look at the ../design/user/templates/pagelayout.tpl file. The first include in the file is:

{include uri="design:page_head.tpl"}

This file isn't availible in the "../design/user/templates/"-folder therefore ez3 uses the "../design/standard/templates/page_head.tpl"-file.

The next include:

{include uri="design:page_topbox.tpl"}

This file is availible in the same folder as pagelayout and therefore this file is used!

My problem is:

Now I created the page_head.tpl in the same folder as pagelayout.tpl and page_topbox.tpl. You then would think that ez3 starts using my new file instead of the one in the standard-folder. This isn't happening! What am I doing wrong?

Haggren

Paul Forsyth

Monday 01 September 2003 12:17:31 am

You may need to look at the override file, which specifies which files are used when.

Read this document:

http://ez.no/developer/ez_publish_3/documentation/customization/custom_design/override_templates

Paul

Paul Borgermans

Monday 01 September 2003 2:21:38 am

Well I think it should pick up the file (if its in design/<your design>/templates) without the need to specify it in the override.ini.append file.

Did you clear your cache?
It is advisable to disabling "ViewCaching" in the [content] section of your site.ini.append.php file (in settings/override, not the original site.ini) while editing templates.

-paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

Jesper Haggren

Monday 01 September 2003 6:55:02 am

ok thanks... I cleared the /var/cache/override folder and reloaded the page.. it worked!

I checked my override.ini and nothing is active in there.

--

I guess thee solution is to clear the override-cache everytime I start using a new own-defined-template.

Thanks Paul!

/Jesper

Paul Forsyth

Monday 01 September 2003 7:06:09 am

I think ez needs a 'click here if things are not working' button :)

paul

Paul Borgermans

Monday 01 September 2003 10:06:45 am

Good suggestion, a cleanup button :-)

Another thing Bård warned me on: accelerator cache.

When I get "inexplicable" problems, I clear the phpa cache files too (usually in /tmp) and restart the entire apache server+ database with a virgin (empty) var/cache. The latter is mostly taking less than 1 sec, so it's OK.

-paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

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

Main resources:

Total runtime0.7064 sec
Peak memory usage4,096.0000 KB
Database Queries68

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0054 588.0313152.6406
Module start 'layout' 0.00540.0027 740.671939.4766
Module start 'content' 0.00810.6970 780.1484600.0703
Module end 'content' 0.70510.0013 1,380.218816.1250
Script end 0.7064  1,396.3438 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.4510160.0002
Check MTime0.00130.1794160.0001
Mysql Total
Database connection0.00080.109110.0008
Mysqli_queries0.649491.9182680.0095
Looping result0.00060.0815660.0000
Template Total0.679196.120.3396
Template load0.00200.278020.0010
Template processing0.677195.851320.3386
Template load and register function0.00020.025910.0002
states
state_id_array0.00070.104210.0007
state_identifier_array0.00100.137620.0005
Override
Cache load0.00160.2276400.0000
Sytem overhead
Fetch class attribute can translate value0.00070.101930.0002
Fetch class attribute name0.00100.141970.0001
XML
Image XML parsing0.00140.194230.0005
class_abstraction
Instantiating content class attribute0.00000.002080.0000
General
dbfile0.00210.2917170.0001
String conversion0.00000.001140.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
6content/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
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 18
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs