Thursday 31 March 2005 10:33:40 am
For a toolbar I need to display "termine" which can have several locations in the subtree. But I don't want to display duplicate entries.
So I tried the following. But the {section show=$objects|contains( $termin.contentobject_id )} doesn't seem to work.
After the loop $objects contains all the object_ids,
$nodes all the node_ids. So the values should be right. But nothing gets excluded....;-((((( Any ideas why it's not working?
After fiddling around with this for hours, scanning the documentation, forum and the book - I'm sure it should work, but it doesn't.
What am I missing? Any hints are very welcome!!!
{let termine=fetch( 'content',
'tree', hash( 'parent_node_id', 168,
'class_filter_type', 'include',
'class_filter_array', array( 'termin' ),
'depth', '5' ) )
objects=array()
nodes=array()
}
{section var=termin loop=$termine}
<b>{section show=$objects|contains( $termin.contentobject_id )}</b>
{section-else}
{append-block scope=root variable=objects}
{$termin.contentobject_id}
{/append-block}
{append-block scope=root variable=nodes}
{$termin.node_id}
{/append-block}
{/section}
{/section}
{section var=termin loop=$termine}
<b>{section show=$nodes|contains( $termin.node_id )}</b>
<p>{$termin.name}</p>
{/section}
{/section}
Thanks in advance Christiane
|