Forums / Setup & design / fetch subfolders and list content problem

fetch subfolders and list content problem

Author Message

Felix Laate

Thursday 03 July 2003 2:48:46 am

Hi all!

I've done (something like) the following:

{let folder_list=fetch(content,list,hash(parent_node_id,2,sort_by,array(array(priority))))}

{section name=Folder loop=$folder_list}
<b>{$Folder:item.name}</b>:<br />
{let sub_folder_list=fetch(content,list,hash(parent_node_id,$Folder:item.node_id,sort_by,array(array(priority))))}

{section name=SubFolder loop=$Folder:sub_folder_list}
-{$Folder:SubFolder:item.name}<br />
{/section}

{/let}
{/section}

{/let}

This works allright, but I want to list out the contents, as done with the line_class_2.tpl, not only the names.

How can do this?

Any help appreciated!

Felix

Publlic Relations Manager
Greater Stavanger
www.greaterstavanger.com

Paal Are Solberg

Thursday 03 July 2003 5:05:12 am

Will this help?
{children=fetch('content','list',hash(parent_node_id,$node.node_id,sort_by,$node.sort_array,limit,$page_limit,offset,$view_parameters.offset)) }

{section name=Child loop=$children sequence=array(bglight,bgdark)}
{node_view_gui view=line content_node=$Child:item}

{let grandchildren=fetch('content',list,hash(parent_node_id,$Child:item.node_id, 'sort_by',array("name", true())))}
{section name=Grand loop=$:grandchildren}
{node_view_gui view=line content_node=$:item}<br />
{/section}