Forums / Setup & design / Need help with assigning the value of one variable to the other

Need help with assigning the value of one variable to the other

Author Message

Michel Houtermans

Sunday 01 February 2004 8:39:21 am

I am still new to the eZ programming language. I am trying to make a fetch statement but the fetch depends on the value of the class that I am looking at.

If the class Id of the current object equals 14 then I want the $:item.node_id to be equal to the $node.parent_node_id.

I tried all kind of things and the last try is presented below. None of them worked. Can somebody help/tell me how to do this?

{section show=eq( $node.object.contentclass_id, 14)}
{set item.node_id=node.parent_node_id}
{/section}

{section loop=fetch( content,
list,
hash( parent_node_id, $:item.node_id,
class_filter_type, include,
class_filter_array, array( 'security' ),
sort_by, $:item.sort_array ) ) }
.....

{/section}

Björn [email protected]

Sunday 01 February 2004 9:37:17 pm

Hi Michel ;-) just saw your thread

make use of nested sections in combination of namespaces

http://www.ez.no/ez_publish/documentation/development/libraries/ez_template/basics/namespaces_

{section}#No1
do stuff here
{section loop=}#No2
loop stuff here
{/section}
do we need to do other stuff here?
{/section}

Looking for a new job? http://www.xrow.com/xrow-GmbH/Jobs
Looking for hosting? http://hostingezpublish.com
-----------------------------------------------------------------------------
GMT +01:00 Hannover, Germany
Web: http://www.xrow.com/