3.1 override weirdness

Author Message

Paul Forsyth

Friday 20 June 2003 9:03:45 am

Im having a problem with overrides. In the following override code I have three overrides, one for each view of a class. The overrides for full and menu views work as expected but line does not. When it display the line view defaults to that found in the standard node/view/line.tpl file, and not my override. I don't receive any errors. My permissions seem fine.

Does anyone else use line overrides in 3.1 (rev 2767)? Or am i doing something silly that i haven't spotted...

I should add that viewing the node/view/line.tpl file within the admin interface correctly shows my override.

[full_my_image]
Source=node/view/full.tpl
MatchFile=node/full_my_image.tpl
Subdir=templates
Match[class]=18

[line_my_image]
Source=node/view/line.tpl
MatchFile=node/line_my_image.tpl
Subdir=templates
Match[class]=18

[menu_my_image]
Source=node/view/menu.tpl
MatchFile=node/menu_my_image.tpl
Subdir=templates
Match[class]=18

And to display i use:

{node_view_gui view=line content_node=$my_node}

thanks

paul

Paul Forsyth

Friday 20 June 2003 9:26:13 am

Ah problem solved.

My actual code was:

{node_view_gui view=line content_node=$RO:item}

which was working of an related object array. but of course content_node requires a node, not a content object.

Entering:
{node_view_gui view=line content_node=$RO:item.main_node}

did the trick.

paul

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.