problem with override. works only without match clause.

Author Message

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=templates
Match[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>

Kai Duebbert

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

Kai Duebbert

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.)

Kai

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

Main resources:

Total runtime1.1371 sec
Peak memory usage8,192.0000 KB
Database Queries60

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0041 588.2734151.2266
Module start 'layout' 0.00410.0037 739.5000220.7188
Module start 'content' 0.00781.1285 960.21884,448.1250
Module end 'content' 1.13630.0007 5,408.343811.8125
Script end 1.1370  5,420.1563 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.2996160.0002
Check MTime0.00120.1094160.0001
Mysql Total
Database connection0.00060.055610.0006
Mysqli_queries1.047492.1145600.0175
Looping result0.00070.0576580.0000
Template Total1.091896.020.5459
Template load0.00190.164720.0009
Template processing1.089995.852620.5450
Template load and register function0.00190.165410.0019
states
state_id_array0.00150.128210.0015
state_identifier_array0.00200.178720.0010
Override
Cache load0.00160.1438270.0001
Sytem overhead
Fetch class attribute can translate value0.00190.167720.0010
Fetch class attribute name0.00300.267850.0006
XML
Image XML parsing0.00070.061120.0003
class_abstraction
Instantiating content class attribute0.00000.001450.0000
General
dbfile0.00080.0684160.0000
String conversion0.00000.000540.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
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 15
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs