override.ini problem

Author Message

Douglas Hammond

Friday 14 August 2009 7:55:44 am

I have the following rule

[vertically_listed_sub_items_event_calendar]
Source=content/view/embed.tpl
MatchFile=embed/verticallylistedsubitems/event_calendar.tpl
Subdir=templates
Match[classification]=vertically_listed_sub_items
Match[class_identifier]=event_calendar

Does not work but if I do

[vertically_listed_sub_items]
Source=content/view/embed.tpl
MatchFile=embed/verticallylistedsubitems/event_calendar.tpl
Subdir=templates
Match[classification]=vertically_listed_sub_items
Match[class_identifier]=event_calendar

It works.

Any Ideas why my new rule does not override vertically_listed_sub_items?

Ivo Lukac

Friday 14 August 2009 8:24:53 am

Check in what order are your rules listed.
Keep in mind that first rule in override.ini which is matching criteria will be used.

http://www.linkedin.com/in/ivolukac
http://www.netgen.hr/eng/blog
http://twitter.com/ilukac

Douglas Hammond

Friday 14 August 2009 8:53:59 am

Order may explain it.

I have added the rules to the module and not the site

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

Main resources:

Total runtime0.0220 sec
Peak memory usage4,096.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0050 588.0313151.1953
Module start 'layout' 0.00510.0038 739.2266220.6563
Module start 'content' 0.00890.0118 959.8828997.7734
Module end 'content' 0.02070.0013 1,957.656329.9922
Script end 0.0220  1,987.6484 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002812.5007140.0002
Check MTime0.00114.9853140.0001
Mysql Total
Database connection0.00083.665710.0008
Mysqli_queries0.00229.903630.0007
Looping result0.00000.058410.0000
Template Total0.00094.110.0009
Template load0.00073.330410.0007
Template processing0.00020.771210.0002
Override
Cache load0.00052.249810.0005
General
dbfile0.00020.994080.0000
String conversion0.00000.032440.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs