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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 20 2025 14:22:42
Script start
Timing: Jan 20 2025 14:22:42
Module start 'layout'
Timing: Jan 20 2025 14:22:42
Module start 'content'
Timing: Jan 20 2025 14:22:43
Module end 'content'
Timing: Jan 20 2025 14:22:43
Script end

Main resources:

Total runtime0.8092 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0045 590.7422152.6250
Module start 'layout' 0.00450.0030 743.367239.4453
Module start 'content' 0.00750.8006 782.8125403.7422
Module end 'content' 0.80810.0011 1,186.55478.1641
Script end 0.8092  1,194.7188 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00270.3385160.0002
Check MTime0.00120.1480160.0001
Mysql Total
Database connection0.00070.084010.0007
Mysqli_queries0.776996.0090460.0169
Looping result0.00030.0387440.0000
Template Total0.785197.020.3925
Template load0.00170.212820.0009
Template processing0.783396.797420.3917
Template load and register function0.00010.015310.0001
states
state_id_array0.00090.107210.0009
state_identifier_array0.00050.066520.0003
Override
Cache load0.00140.1728120.0001
Sytem overhead
Fetch class attribute can translate value0.00050.063410.0005
Fetch class attribute name0.00050.060910.0005
XML
Image XML parsing0.00010.012710.0001
class_abstraction
Instantiating content class attribute0.00000.000610.0000
General
dbfile0.00140.1731100.0001
String conversion0.00000.000940.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 10
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs