Forums / Developer / Error shwoing data from node
John van der Boom
Tuesday 27 May 2003 5:14:38 pm
Hi,I created a folder (node: 252) with some object (class 36) in it. Now I want to show those objects.
I have written this code:
{let party_list=fetch(content,tree,hash(parent_node_id,252,limit,3,sort_by,array(published,false()),class_filter_type,include,class_filter_array,array(36)))} {section name=Show show=true} ...... {section name=Partyzone loop=$party_list} ...... {/section} ...... {/section}{/let}
I'm getting this error and warning from EzDebug:
Error: eZTemplate @ node/view/full.tpl:228[0] Unknown template variable 'item' in namespace 'Partyzone' Warning: eZTemplate:node_view_guiParameter content_node is not an object
What's going wrong here?
Frode Marton Meling
Tuesday 27 May 2003 11:30:16 pm
First of all, you don't need the {section name=Show show=true}, unless you want to replace the show=true with something else.
I think you also need to list the code inside the Partyzone section to the forum.
One tip you can test before listing it to the forum. If you are accessing the current namespace, you don't need to write it completly, just write $:item instead of i.e. $Partyzone:item.
more examples in the ez SDK: http://www.ez.no/sdk/tutorials/view/templateissues
MartOn