Sharepoint WSS 3.0 Masterpages and SPSiteMapProvider for navigation

Man of Honour
Joined
30 Oct 2003
Posts
14,099
Location
Essex
Hi all, I have been using some custom code in the master page of my wss 3.0 site to get dynamic drop-down menus for navigation, this works great, however I have noticed that the code for this has caused problems with permissions when applying permissions at the item level i.e. giving a user permissions to just a single list.

It seems that the small changes in the code break the "limited access" permission in sharepoint which results in the applied permissions not working and the user being denied access. The code I have changed is below.

Code:
< asp:SiteMapDataSource
ShowStartingNode="False"
SiteMapProvider="SPNavigationProvider"
id="topSiteMap"
runat="server"
StartingNodeUrl="sid:1002" / >

TO

Code:
<asp:SiteMapDataSource
ShowStartingNode="True"
SiteMapProvider="SPSiteMapProvider"
id="topSiteMap"
runat="server" />

AND

Code:
MaximumDynamicDisplayLevels="3"

If anybody can shed some light on how to still use the drop-down navigation while not breakig permissions that would be great. The only way that I can think this will work is by creating a new class which inherits from SPSiteMapProvider but at a different permissions level.

Has anybody come across this before or can anybody shed some light?
 
Back
Top Bottom