Auto-hiding menus

Author Message

Antoine Schmid

Monday 27 February 2006 7:35:48 am

Hi,

When a folder is assigned to a reserved section, the corresponding menu doesn't shows up for users who don't have the proper privileges to access it.

In that case how to do we interest them in registering if they don't see some content they can't access ?

Well, all this to know if someone can tell me how to display menus for areas users can get in. I don't know where the restriction is done. I've look at the fetch function in the menu template, but for me, it sould work:

{let docs=treemenu( $module_result.path,
                    is_set( $module_result.node_id )|choose( 2, $module_result.node_id ),
                    ezini( 'MenuContentSettings', 'LeftIdentifierList', 'menu.ini' ),
                    0, 3 )
                    depth=1
                    last_level=0
                    is_selected_method='tree'}

Thank you !

A.

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 31 2025 01:26:42
Script start
Timing: Jan 31 2025 01:26:42
Module start 'layout'
Timing: Jan 31 2025 01:26:42
Module start 'content'
Timing: Jan 31 2025 01:26:42
Module end 'content'
Timing: Jan 31 2025 01:26:42
Script end

Main resources:

Total runtime0.6585 sec
Peak memory usage8,192.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0050 588.0313151.1953
Module start 'layout' 0.00500.0035 739.2266220.6563
Module start 'content' 0.00850.6490 959.88284,139.4219
Module end 'content' 0.65750.0009 5,099.30477.8750
Script end 0.6584  5,107.1797 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.5125160.0002
Check MTime0.00120.1882160.0001
Mysql Total
Database connection0.00080.116310.0008
Mysqli_queries0.593090.0614460.0129
Looping result0.00030.0494440.0000
Template Total0.614093.220.3070
Template load0.00190.282920.0009
Template processing0.612192.964120.3061
Template load and register function0.00160.237710.0016
states
state_id_array0.00110.162110.0011
state_identifier_array0.00080.120920.0004
Override
Cache load0.00150.2247100.0001
Sytem overhead
Fetch class attribute can translate value0.00150.234710.0015
Fetch class attribute name0.00140.213810.0014
XML
Image XML parsing0.00010.017310.0001
class_abstraction
Instantiating content class attribute0.00000.000810.0000
General
dbfile0.00200.3095100.0002
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
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/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: 6
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs