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.