node_view_gui in pagelayout.tpl

Author Message

Felix Laate

Tuesday 23 November 2004 4:53:57 am

Hi all!

In my (overriding) pagelayout.tpl I want to have the full view of a certain class (kind of banner) shown at certain places.

I've tried to achieve this in two ways:

{let children=fetch(content,node,hash(node_id,124))}
 <td>{node_view_gui view=full content_node=$children}</td>
{/let}

and

{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 'banner' ) ) )}

									{section name=Child loop=$children}
										<td>{node_view_gui view=full content_node=$Child:item}</td>

								
{/section}
{/let}	

but none of the solutions result in content fetched.

Debug (for the second variant) gives:

Error: eZTemplate Nov 23 2004 14:36:26 
Unknown template variable 'node' in namespace ''
 
Error: eZTemplate @ design/corporate/override/templates/full/pagelayout_section_1.tpl:218[9] Nov 23 2004 14:36:26 
Unknown template variable 'children' in namespace ''

The system runs 3.5.0beta1 (YES, I'm still waiting..)

felix

Publlic Relations Manager
Greater Stavanger
www.greaterstavanger.com

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