node_view_gui

Author Message

David Goddard

Tuesday 17 May 2005 7:53:10 am

Hi,

Dumb question, but I'm really struggling how the overrides work with the node_view_gui() template operator.

If I used the operator to view a node which was an instance of a folder class

{node_view_gui content_node=$aNode view=line}

And I placed this override in my siteaccess override.tpl

[line_folder_view]
Source=node/view/line.tpl
MatchFile=line_folder_view.tpl
Subdir=templates
Match[class_identifier]=folder

I would expect line_folder_view.tpl to be called by the node_view_gui() operator, but instead I get the 'Default Object View', so clearly my override isn't being used.

How can I control the overrides for the operator node_view_gui()?

Thanks

David

Frederik Holljen

Tuesday 17 May 2005 11:28:45 pm

Did you remember to clear the cache after you added the override?

David Goddard

Thursday 19 May 2005 8:40:56 am

Hi,

Thanks, sorted it. Silly typo.

I found turning on the debug option 'List of Templates Used' (new in 3.6?) very helpful in tracking down which templates were actually being loaded. Good feature!

settings/override/site.ini
[TemplateSetings]
ShowUsedTemplates=enabled 

or via the Quick Settings in the Admin interface.

David

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

Main resources:

Total runtime0.6286 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0062 588.8984152.6094
Module start 'layout' 0.00620.0020 741.507839.3984
Module start 'content' 0.00820.6188 780.9063504.7188
Module end 'content' 0.62700.0015 1,285.62508.2031
Script end 0.6285  1,293.8281 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.5790160.0002
Check MTime0.00160.2605160.0001
Mysql Total
Database connection0.00090.142910.0009
Mysqli_queries0.578392.0074570.0101
Looping result0.00060.0934550.0000
Template Total0.598995.320.2994
Template load0.00240.387720.0012
Template processing0.596494.880920.2982
Template load and register function0.00020.028610.0002
states
state_id_array0.00080.119810.0008
state_identifier_array0.00080.133520.0004
Override
Cache load0.00200.3207230.0001
Sytem overhead
Fetch class attribute can translate value0.00060.093520.0003
Fetch class attribute name0.00100.166740.0003
XML
Image XML parsing0.00070.112320.0004
class_abstraction
Instantiating content class attribute0.00000.001640.0000
General
dbfile0.00090.1357160.0001
String conversion0.00000.001140.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
3content/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
3content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.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