node_view_gui and override condition

Author Message

Seb gaillard

Wednesday 22 April 2009 6:26:12 am

hello,

in a tpl, i make this

{foreach $nodes_items as $index => $node_item}
	{node_view_gui content_node=$node_item view=line_item}
{/foreach}

In my override.ini.append.php, i have

### LINE
[line_article_sport]
Source=node/view/line_item.tpl
MatchFile=node/view/line_item/articleSport.tpl
Subdir=templates
Match[parent_class_identifier]=folder_sport
Match[class_identifier]=article

### LINE
[line_article]
Source=node/view/line_item.tpl
MatchFile=node/view/line_item/article.tpl
Subdir=templates
Match[class_identifier]=article

I don't underdstand why the override doesnt't work with the node_view_gui ?
The following override works fine when i visualise a content with the 'content' module and the view 'view' (content/view/full/153)

### FULL
[full_article_sport]
Source=node/view/full.tpl
MatchFile=node/view/full/articleSport.tpl
Subdir=templates
Match[parent_class_identifier]=folder_sport
Match[class_identifier]=article

### LINE
[full_article]
Source=node/view/full.tpl
MatchFile=node/view/full/article.tpl
Subdir=templates
Match[class_identifier]=article

Any 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 22:36:17
Script start
Timing: Jan 18 2025 22:36:17
Module start 'layout'
Timing: Jan 18 2025 22:36:17
Module start 'content'
Timing: Jan 18 2025 22:36:18
Module end 'content'
Timing: Jan 18 2025 22:36:18
Script end

Main resources:

Total runtime1.3421 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0053 589.0547152.6250
Module start 'layout' 0.00530.0028 741.679739.4453
Module start 'content' 0.00811.3327 781.1250404.3359
Module end 'content' 1.34080.0012 1,185.46098.1563
Script end 1.3420  1,193.6172 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.2425160.0002
Check MTime0.00140.1017160.0001
Mysql Total
Database connection0.00090.065610.0009
Mysqli_queries1.300296.8794460.0283
Looping result0.00040.0333440.0000
Template Total1.303697.120.6518
Template load0.00210.153820.0010
Template processing1.301596.976220.6507
Template load and register function0.00020.013310.0002
states
state_id_array0.00200.152110.0020
state_identifier_array0.00170.127620.0009
Override
Cache load0.00160.1212130.0001
Sytem overhead
Fetch class attribute can translate value0.00130.096910.0013
Fetch class attribute name0.00100.073010.0010
XML
Image XML parsing0.00010.008310.0001
class_abstraction
Instantiating content class attribute0.00000.000310.0000
General
dbfile0.00190.1387100.0002
String conversion0.00000.000440.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
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 11
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs