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 Dieding@xrow.de

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/

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

eZ debug

Timing: Jan 19 2025 01:09:45
Script start
Timing: Jan 19 2025 01:09:45
Module start 'layout'
Timing: Jan 19 2025 01:09:45
Module start 'content'
Timing: Jan 19 2025 01:09:45
Module end 'content'
Timing: Jan 19 2025 01:09:45
Script end

Main resources:

Total runtime0.0157 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0070 589.4141152.6563
Module start 'layout' 0.00700.0026 742.070339.5234
Module start 'content' 0.00960.0043 781.593889.3984
Module end 'content' 0.01390.0018 870.992230.3047
Script end 0.0157  901.2969 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002415.1201140.0002
Check MTime0.00117.2335140.0001
Mysql Total
Database connection0.002012.631710.0020
Mysqli_queries0.002415.261030.0008
Looping result0.00000.083410.0000
Template Total0.00149.210.0014
Template load0.00084.773810.0008
Template processing0.00074.385810.0007
Override
Cache load0.00053.140110.0005
General
dbfile0.00021.445880.0000
String conversion0.00000.056140.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs