Forums / Setup & design / Categories or SubFolder menu

Categories or SubFolder menu

Author Message

Neil Kanth

Friday 21 January 2005 8:52:45 am

I am using the code below to display the subfolders in the Left Column much like a Categories menu of the main folder.
I tested only to (1) one level.
The articles in the main folders gets listed along with the subfolders; NOT what I want.

<i>The Node ID *62 has to be there so that it works as it does in the subfolders.</i>
Could someone suggest a fix?

(I got this from browsing through the forum)

{* Displays The Names of Subfolders. *}
<h2>Categories</h2>
{let folder_list2=fetch(content,
						list,
						hash( parent_node_id,62,
						sort_by, 
						array( array(priority))))
				
node_list=fetch(content,
				tree,
				hash( parent_node_id,
					  $node.node_id,
					  limit, 5,
					  sort_by, array( published,false()),
					  class_filter_type, include,
					  class_filter_array, array(2)))}

{section name=Folder loop=$folder_list2}
		<ul class="onsite">
			<li><a href={concat("/",$Folder:item.url_alias)|ezroot}>{$Folder:item.name}</a></li>
		</ul>
{/section}

Thanks
-Neil