Monday 13 November 2006 7:22:40 am
Hi I'm trying to fetch content insade of fetch. I've written the following code :
{let children=fetch( content, list, hash( parent_node_id, $node.node_id,
sort_by, $node.sort_array, ) )}
{* LOOP: For each child of the node... *} {section name=Child loop=$children}
{node_view_gui view=line content_node=$Child:item}
{attribute_view_gui attribute=$:item.object.data_map.title}
{attribute_view_gui attribute=$:item.object.data_map.body} {$:item.object.data_map.headline.content|wash}
{if eq( $:item.class_identifier, 'table2' )}
{let nebojsa=fetch( content, list, hash( parent_node_id, $:item.node_id,
sort_by, $node.sort_array, ) )}
{* LOOP: For each child of the node... *}
{section name=Child1 loop=$nebojsa}
<p>{attribute_view_gui attribute=$:item.object.data_map.column1}</p>
<p> {attribute_view_gui attribute=$:item.object.data_map.column2}</p>
{/section} {/let} {/if}
{* End of loop. *}
{/section} {/let} Doesn't work! Any idea? Thanks in advance
|