node_view_gui view=menu doesn´t work in eZ 3.1

Author Message

Leandro Alves

Wednesday 30 July 2003 11:27:12 am

Hi!

I am studying eZ Publish´s template and I have some doubts...

I have this in my code (pagelayout_news.tpl IN eZ 3.1 and pagelayout_section_3.tpl for eZ 3.0) The only difference is the 17 to 24 in parent_node_id)

news_list=fetch(content,tree,hash(
parent_node_id, 17,
limit, 5,
sort_by, array( published, false() ),
class_filter_type, include,
class_filter_array, array( 2 )) )

{section name=News loop=$news_list max=1}
<tr>
<td>
{node_view_gui view=menu content_node=$News:item}
</td>
</tr>
{/section}

In ez 3.0, {node_view_gui view=menu content_node=$News:item} works but IN eZ 3.1 does not! Why????

What can I do for this work??

Thanks
Leandro

Alex Jones

Wednesday 30 July 2003 11:41:41 am

Did you make the change to using override templates when you switched to 3.1? The way overrides are applied is substantially different in 3.1.

More information: http://www.ez.no/developer/ez_publish_3/documentation/customization/custom_design/override_templates

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

Leandro Alves

Thursday 31 July 2003 5:23:51 am

Thanks a lot for your replay Alex...

I don&acute;t make the change to using override templates in my eZ 3.1...

The menu file stays in: design/my_design/override/templates/node/view/menu_class_2.tpl

How I can to change may override.ini for to use it??????

When I use "line" instead "menu" the node_view_gui works.

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

If I use "menu" does not...

{node_view_gui view=menu content_node=$News:item}

What Can I change in my override file???

Thanks.
Leandro

Robin Sørlie

Thursday 31 July 2003 8:18:04 am

Have you tried to copy and rename your line_class_x to menu_class_x, and then try the {node_view_gui view=menu content_node=$News:item}?

Just to see if there's nothing wrong with your menu_class template.

Leandro Alves

Thursday 31 July 2003 10:37:01 am

I copied my

design/my_design/override/templates/node/view/menu_class_2.tpl

to

design/standard/templates/node/view/menu.tpl

This is not a perfect solution. It works :-)

Thanks for all replay.
Leandro

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