Exclude folder from menu

Author Message

Niklas Gunnäs

Friday 22 April 2005 4:15:25 am

What I want to do is hide a folder from menulist but showing its content in a node_list within a toolbar with the latest article in that folder. If I use the hide function the folder content will not show in node_list.

Felix Laate

Friday 22 April 2005 4:22:25 am

Hi Niklas!

I'm sure there are better ways to this, but my way is the highway:

Give the folders yoy want to show priorities 0 - how_ever_many_items_you_whant_in_your_menu. Then give the "hidden" ones priorities 100->

Then you set a max in your menu-fetch that equals the number with the much too long name (see above) less 1.

Felix

Publlic Relations Manager
Greater Stavanger
www.greaterstavanger.com

Niklas Gunnäs

Friday 22 April 2005 5:27:03 am

Thanks a million

I get it :-)

Next question, how is it done?

What code is needed in menu to get it working?

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 19 2025 15:23:46
Script start
Timing: Jan 19 2025 15:23:46
Module start 'layout'
Timing: Jan 19 2025 15:23:46
Module start 'content'
Timing: Jan 19 2025 15:23:47
Module end 'content'
Timing: Jan 19 2025 15:23:47
Script end

Main resources:

Total runtime1.2813 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.0063 589.1563152.6250
Module start 'layout' 0.00630.0033 741.781339.4453
Module start 'content' 0.00961.2699 781.2266534.0547
Module end 'content' 1.27950.0018 1,315.281312.1641
Script end 1.2813  1,327.4453 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.2512160.0002
Check MTime0.00130.1011160.0001
Mysql Total
Database connection0.00090.071210.0009
Mysqli_queries1.223495.4827570.0215
Looping result0.00070.0509550.0000
Template Total1.234596.420.6173
Template load0.00180.138920.0009
Template processing1.232896.211120.6164
Template load and register function0.00010.008510.0001
states
state_id_array0.00180.138110.0018
state_identifier_array0.00240.186920.0012
Override
Cache load0.00150.1151180.0001
Sytem overhead
Fetch class attribute can translate value0.00050.036020.0002
Fetch class attribute name0.00120.092750.0002
XML
Image XML parsing0.00210.164220.0011
class_abstraction
Instantiating content class attribute0.00000.001160.0000
General
dbfile0.00260.2067220.0001
String conversion0.00000.000640.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
3content/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
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 11
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs