Generate menu of only folders

Author Message

Felix Laate

Thursday 01 May 2003 4:38:37 am

Hi all!

I'm trying to make a menu containing the folders in a folder, i.e. not including any other objects that it contains (e.g. an infopage).

This is my code:

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

..

<table>
{section name=Folder loop=$folder_list}
<tr>
<td class="menubutton" >

 <a href={concat("/content/view/full/",$Folder:item.node_id,"/")|ezurl}>{$Folder:item.name}</a></td>
</tr>
{/section}
</table>

...

This results in a menu containg all elenments in node 16

Any help would be greatly appreciated!

Felix

Publlic Relations Manager
Greater Stavanger
www.greaterstavanger.com

Vivienne van Velzen

Thursday 01 May 2003 4:54:33 am

Felix,

You can define the class that you want to include. For instance, if Folder has class 1, you can try the following:

{let folder_list=fetch(content,list,hash(parent_node_id,16,sort_by,array(array(priority)), class_filter_type, include, class_filter_array, array(1)))}

....

{/let}

With class_filter_type you indicate if you want to include or exclude the classes in class_filter_array (in this case you want to include them, and nothing else).

Vivienne

Felix Laate

Thursday 01 May 2003 11:59:40 am

Thanx alot!

Now I see the light...

:-) Felix

Publlic Relations Manager
Greater Stavanger
www.greaterstavanger.com

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 18 2025 05:07:23
Script start
Timing: Jan 18 2025 05:07:23
Module start 'layout'
Timing: Jan 18 2025 05:07:23
Module start 'content'
Timing: Jan 18 2025 05:07:23
Module end 'content'
Timing: Jan 18 2025 05:07:23
Script end

Main resources:

Total runtime0.7051 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0064 589.8125152.6250
Module start 'layout' 0.00640.0028 742.437539.4453
Module start 'content' 0.00910.6945 781.8828529.9609
Module end 'content' 0.70360.0014 1,311.843812.1641
Script end 0.7051  1,324.0078 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.4522160.0002
Check MTime0.00130.1774160.0001
Mysql Total
Database connection0.00140.196910.0014
Mysqli_queries0.650792.2906570.0114
Looping result0.00060.0803550.0000
Template Total0.677496.120.3387
Template load0.00230.331820.0012
Template processing0.675195.742120.3375
Template load and register function0.00010.013310.0001
states
state_id_array0.00030.039910.0003
state_identifier_array0.00100.146820.0005
Override
Cache load0.00190.2746350.0001
Sytem overhead
Fetch class attribute can translate value0.00060.091520.0003
Fetch class attribute name0.00110.155840.0003
XML
Image XML parsing0.00050.073720.0003
class_abstraction
Instantiating content class attribute0.00000.001350.0000
General
dbfile0.00060.0913160.0000
String conversion0.00000.000840.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
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 12
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs