Forums / General / problem with override. works only without match clause.
Kai Duebbert
Tuesday 17 February 2004 2:06:09 am
Hi,
I want to override ezobjectrelation.tpl. I get an error message with "none of the templates can be found" with the following settings (override.ini):
[pm_task_objectrelation] Source=content/datatype/edit/ezobjectrelation.tpl MatchFile=pm_task_ezobjectrelation.tpl Subdir=templatesMatch[class]=18
But if I let out the "Match" clause then everything works. I tried many different combinations with "Match", but everytime I include it I get the above error message.
Does anyone know a solution? Bug or configuration problem?
Thanks,Kai
Alex Jones
Tuesday 17 February 2004 7:34:32 am
Kai, have you checked to make sure that there aren't any other overrides above this one in your override.ini that could be affecting the same template/page? I find that is the mistake I make most often, I still find it annoying that the overrides are applied in such a linear fashion.
Alex
Alex [ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ] <i>When in doubt, clear the cache.</i>
Tuesday 17 February 2004 4:58:20 pm
Yeah, I checked that. I only have one other override in it which overrides view/full.tpl. So, I don't really think it's the problem of the configuration file. I just can't find the real solution... but I'll keep looking.
Kai
Tuesday 17 February 2004 6:33:50 pm
Ok, I found the problem (see bug http://ez.no/community/bug_reports/unexpected_behavious_of_setting_overridesettings_cache ).
When I set the setting [OverrideSettings]->Cache back to enabled, then it works perfectly.
I also had a wrong class ID in the configuration file and it seems that in this case the generation of override.ini is faulty and tries to use the wrong setting although the match case is for a different class/node/... There seems to be a bug which only in this case shows.
So, anyone who has problems with their override.ini, check the above settings. (And also remember to clear the caches.)