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.