Forums / Setup & design / Trying to display line view of articles on my pagelayout.tpl fails

Trying to display line view of articles on my pagelayout.tpl fails

Author Message

Felix Laate

Monday 29 November 2004 3:05:33 am

Hey there!

I'm tying to display the line view of some articles (residing in a certain folder) on my pagelayout.tpl.

I do it like this:

{let children=fetch(content,list,hash(parent_node_id,2,sort_by,$node.sort_array,limit,3,class_filter_type,include,class_filter_array,array('article')))}
{section name=Child loop=$children}
<td>{node_view_gui view=line content_node=$Child:item}</td>
{/section}
{/let}

This results in small blue images:

<td><img src="/design/standard/images/class_2.png" border="0" alt="Document" />&nbsp;</td>

Changing to full view results in:

Default object view. Click to create a custom template, Node ID: , Object ID: ...

What does this? Why can't I have have the articles displayed?

Felix

Publlic Relations Manager
Greater Stavanger
www.greaterstavanger.com

Felix Laate

Tuesday 30 November 2004 5:25:53 am

Problem solved..

It turned out to be namespace problem. The code was within a switch with a name assigned to it. Removing the named solved the problem.

felix

Publlic Relations Manager
Greater Stavanger
www.greaterstavanger.com