Jonny Bergkvist
|
Friday 20 June 2003 12:43:22 am
I have trouble using the {run-once}-function. Only the first {run-once} is beeing executed. I this how it should be, or is it maybe a bug?
I have the following template code:
{section name=Child loop=fetch('content','list',hash(parent_node_id,$node.node_id,
sort_by,$node.sort_array,
class_filter_type,include, class_filter_array,array(1)))}
{run-once}
<tr>
<td colspan="2">
<h2>{$node.data_map.description.content.output.output_text}</h2>
</td>
</tr>
<tr>
<td width="50%"> {/run-once}
{node_view_gui view=line content_node=$Child:item}
{switch name=Sw2 match=$Child:number}
{case in=array(2,4,6,8,10,12,14,16,18,20)}
</td></tr><tr><td width="50%">
{/case}
{case}
</td><td width="50%">
{/case} {/switch}
{run-once}
</td></tr> {/run-once} {/section}
|