Strict template override's match policy in eZ 4.0.0?

Author Message

Piotrek Karaś

Tuesday 04 December 2007 2:32:57 am

Hi there,

Starting from eZ Publish 4.0.0, has anything changed regarding where templates defined in override.ini are searched for? It used to be that both <b>/templates</b> and <b>/override/templates</b> design subfolders were looked into, now it seems like the first one is skipped, resulting in:

Error: eZTemplateDesignResource::overrideArray  	Dec 04 2007 11:30:30

Custom match file: path 'full/myclass.tpl' not found in any resource. Check the template settings in settings/override.ini

Error: eZTemplateDesignResource::overrideArray, tried files 	Dec 04 2007 11:30:30

design/plain_site/override/templates/full/myclass.tpl, design/base/override/templates/full/myclass.tpl, extension/ezdhtml/design/standard/override/templates/full/myclass.tpl, extension/ezodf/design/standard/override/templates/full/myclass.tpl, extension/ezvotecollector/design/standard/override/templates/full/myclass.tpl, design/standard/override/templates/full/myclass.tpl

It used to check <b>design/plain_site/templates/full/myclass.tpl</b>, didn't it?
Or is it an error?

--
Company: mediaSELF Sp. z o.o., http://www.mediaself.pl
eZ references: http://ez.no/partners/worldwide_partners/mediaself
eZ certified developer: http://ez.no/certification/verify/272585
eZ blog: http://ez.ryba.eu

Kristof Coomans

Tuesday 04 December 2007 4:00:01 am

This is intended, yes. See issue http://issues.ez.no/9595

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Piotrek Karaś

Tuesday 04 December 2007 6:16:05 am

We've just spent a day trying to regain control over it ;) I was about to file a bug report, but then things gradually begun to work... let you know if anything changes.
Thanks!

--
Company: mediaSELF Sp. z o.o., http://www.mediaself.pl
eZ references: http://ez.no/partners/worldwide_partners/mediaself
eZ certified developer: http://ez.no/certification/verify/272585
eZ blog: http://ez.ryba.eu

Patrick Kaiser

Monday 10 December 2007 5:09:29 am

Hi,

it's not that I couldnt live with the current implementation, but to be onest - I dont like it at all.
Until now I had all my template in one place, in the templates folder of my design extensions. For some of them I created overrides, others were simply included. Now I have to split my folder structure in a way that makes the handling more complicated and less intuitive.

since I dont see any advanteges of the new behaviour I would appreciate if you would switch back to the old behaviour or atleast introduce a configuration switch for this..

Best regards, patrick


Best regards,

Patrick

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.