Having problems showing articles in foler

Author Message

Douglas Hammond

Wednesday 28 May 2003 12:56:39 pm

I have then folowing

{let article_list=fetch(content,list,hash(parent_node_id,$node.node_id, class_filter_type, include, class_filter_array, array(2)))}
{section name=Child loop=$article_list}
content_view_gui view=text_linked content_object=$Child:item}
{/section}
{/let}

and i get no articles showing and i have to in the folder.

please help

Jo Henrik Endrerud

Thursday 29 May 2003 3:44:10 am

Here you are fetching all the nodes containing an article from the current level. Then you are trying to show the nodes as objects. In content_view_gui (I assume you just forgot the beginning { in your posting) you are saying that content_object is the current node in the loop, while it needs to be the object.

Two solutions:
use ...content_object=$Child:item.object}

or (as I would recomend):
change content_view_gui to node_view_gui and use content_node=$Child:item

Jo Henrik Endrerud | System Developer @ Seeds Consulting | http://www.seeds.no

Douglas Hammond

Thursday 29 May 2003 7:49:39 am

I forget to give user access to the class but you helped me for my next quest, i was trying to display the articles using custom line display class and you hva to use nod_view_gui instead of content_view_gui to get it to use the custom template

thanks

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