Daniele Nocentini
|
Thursday 17 March 2005 5:59:29 am
I have a specific node that contain a list of subnodes, I want to display the nodes of this subnodes, How can I do? my code:
{let children=fetch('content',list,hash(parent_node_id,119,
class_filter_type, include,
class_filter_array, array( 1 ),
"sort_by",array("published",false())))}
<TABLE border="1" cellpadding="0" cellspacing="0">
<tr>
{section name=Child loop=$children}
<td width="50%" valign="top">
{$Child:item.object.data_map.name.content}
<table width="100%" border="1" cellspacing="0" cellpadding="0">
<tr>
<td>data</td>
<td>nome</td>
<td>luogo</td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
</table>
</td>
{delimiter modulo=2}
</tr>
<tr>
{/delimiter}
{/section}
</tr>
</TABLE>
{/let}
Antica Bottega Digitale srl
http://www.abd.it
|
Valentina Ferrari
|
Thursday 17 March 2005 6:58:27 am
Try to use
{let children=fetch('content',tree,hash(parent_node_id,119,
> class_filter_type, include,
> class_filter_array, array( 1 ),
> "sort_by",array("published",false())))}
TREE instead of LIST
bye valentina
|
Daniele Nocentini
|
Thursday 17 March 2005 7:04:16 am
Thanks Valentina. I try this code and work fine!
<table>
{section name=Folder}
{section loop=fetch(content,list,hash(parent_node_id,119, class_filter_type, "include", class_filter_array, array(1,2),sort_by,array(array(priority))))}
<tr>
<td class="path">--{$Folder:item.name}
{section loop=fetch(content,tree,hash(parent_node_id,$Folder:item.node_id, class_filter_type, "include", class_filter_array, array(29),sort_by,array(array(priority))))}
<ul>
<li></li>----{$Folder:item.name}</a></li>
</ul>
{/section}
</td>
</tr>
{/section}
{/section}
</table>
Antica Bottega Digitale srl
http://www.abd.it
|