use of $node.node_is

Author Message

Pascal France

Monday 07 August 2006 10:52:14 am

Hi,

I'm building a menu in order to include it in the toolbar list.
I have this code:

{let top_cat=84 used_node=false()}
{set used_node=84}
<div class="haut_{$type_color}">
<h3>{$title}</h3>
</div>
<ul class="{$type_color}">{* ul_1 *}

{def $base=fetch( 'content', 'node', hash( 'node_id', 84 ) )}

With this code it is the children of the node 84 which are displayed
I would like to display the children of the current node. So I tried this code:

{let top_cat=$node.node_id used_node=false()}
{set used_node=$node.node_id}
<div class="haut_{$type_color}">
<h3>{$title}</h3>
</div>
<ul class="{$type_color}">{* ul_1 *}

{def $base=fetch( 'content', 'node', hash( 'node_id', $node.node_id ) )}

...but this works only one time and if I clean all caches.
So I tried:

{let top_cat=fetch(content, node, hash( node_id, $module_result.node_id)) used_node=false()}
<h3>{$top_cat}</h3>
{set used_node=fetch(content, node, hash( 'node_id', $module_result.node_id ) ) }
<h3>{$used_node}</h3>
<div class="haut_{$type_color}">
<h3>{$title}</h3>
</div>
<ul class="{$type_color}">{* ul_1 *}

{def $base=fetch( 'content', 'node', hash( 'node_id', $module_result.node_id ) )}

..but this doesn't work.

Regards

Pascal

Ce qui embellit le désert c'est qu'il cache un puits... quelque part... (A. de Saint-Exupéry) - http://luxpopuli.fr/eZ-Publish

David Jones

Friday 11 August 2006 3:28:15 am

Did you find a soultion to this issue?

I too would like to display a list of children for the current node.

Thanks

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