class_group match rule

Author Message

Eric Bourgain

Saturday 03 March 2007 4:13:21 am

I've some problems with the Match[class_group] rule in override.ini

in content.ini, the class group override is enabled:

[ContentOverrideSettings]
EnableClassGroupOverride=true

in override.ini.append.php for the user site, I've the following rules

[line_iag_form]
Source=node/view/line.tpl
MatchFile=line/iagform.tpl
Subdir=templates
Match[class_group]=5

[full_iag_form]
Source=node/view/full.tpl
MatchFile=full/iagform.tpl
Subdir=templates
Match[class_group]=5

The 'full' override works fine. But the 'line' one does not work. I can't figure why. Further investigations lead to think that node_view_gui does not go through the same functions than the initial template call.

BTW, this override does not work either (in admin siteaccess):

[edit_iag_form]
Source=content/edit_attribute.tpl
MatchFile=formdesigner/edit_attribute.tpl
Subdir=templates
Match[class_group]=5

Does anyone have an idea?

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

Main resources:

Total runtime0.0164 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0074 593.0547152.6250
Module start 'layout' 0.00740.0024 745.679739.4297
Module start 'content' 0.00980.0048 785.109485.2109
Module end 'content' 0.01450.0019 870.320330.3047
Script end 0.0164  900.6250 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002314.2756140.0002
Check MTime0.00105.9862140.0001
Mysql Total
Database connection0.00137.666110.0013
Mysqli_queries0.003219.477630.0011
Looping result0.00000.078310.0000
Template Total0.00158.910.0015
Template load0.00085.003510.0008
Template processing0.00063.909110.0006
Override
Cache load0.00063.398910.0006
General
dbfile0.00042.572880.0001
String conversion0.00000.042040.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