Match[section] Override problems

Author Message

Martin Sanders

Friday 07 April 2006 9:24:42 am

Hi, I've set-up all our main (1st level) folders into individual sections with linked permissions and content, all seems to work fine but when I try to set the '/settings/siteaccess/website/override.ini.append.php' parameters they do not seem to work.

[casestudy_article_full]
Source=node/view/full.tpl
MatchFile=full/casestudy_article.tpl
Subdir=templates
Match[class_identifier]=article
Match[section]=9

Am I doing something wrong, any help would be welcomed as I've spent all day trying to figure out how the issue can be resolved.

eZ publish, version 3.7.3

Christian Johansen

Friday 07 April 2006 9:52:36 am

First of all - turn on debugging and see if you get any template loading related error messages. You also need to make sure that the override for the section is placed above any other overrides for the same templates in override.ini, ie:

[casestudy_article_full]
Source=node/view/full.tpl
MatchFile=full/casestudy_article.tpl
Subdir=templates
Match[class_identifier]=article
Match[section]=9

[article_full]
Source=node/view/full.tpl
MatchFile=full/casestudy_article.tpl
Subdir=templates
Match[class_identifier]=article

If you have them the other way around, the article_full override will take presedence. The last thing you need to do is clear out your ini cache - overrides are not reloaded if the ini settings are cached.

Martin Sanders

Friday 07 April 2006 10:12:29 am

Hi Christian,

Thanks, your recommendation worked. I moved my new override to the top of the list. Only one last question how will that effect other overrides?

Many thanks,

Christian Johansen

Saturday 08 April 2006 1:55:18 am

It will only affect overrides to the full.tpl template for the article class in the section you specify. If an article is to be viewed in full mode and it is not in the specified section, eZ will look further down the list.

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

Main resources:

Total runtime1.1302 sec
Peak memory usage4,096.0000 KB
Database Queries60

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0056 589.3438152.6250
Module start 'layout' 0.00560.0024 741.968839.4609
Module start 'content' 0.00801.1205 781.4297478.1641
Module end 'content' 1.12850.0016 1,259.593812.1563
Script end 1.1302  1,271.7500 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00300.2673160.0002
Check MTime0.00130.1176160.0001
Mysql Total
Database connection0.00070.065210.0007
Mysqli_queries1.074895.0973600.0179
Looping result0.00060.0501580.0000
Template Total1.099997.320.5500
Template load0.00180.161220.0009
Template processing1.098197.157920.5490
Template load and register function0.00020.021910.0002
states
state_id_array0.00120.109110.0012
state_identifier_array0.00140.122620.0007
Override
Cache load0.00140.1281170.0001
Sytem overhead
Fetch class attribute can translate value0.00080.069120.0004
Fetch class attribute name0.00120.105140.0003
XML
Image XML parsing0.00030.026220.0001
class_abstraction
Instantiating content class attribute0.00000.001040.0000
General
dbfile0.00060.0489100.0001
String conversion0.00000.000640.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/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 14
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs