Is there any way to tell ASPMenu to hide restricted sites  
Author Message
ChristophG





PostPosted: SharePoint - Development and Programming, Is there any way to tell ASPMenu to hide restricted sites Top

Hi,

we use in our Master-Page the SharePoint-Control ASPMenu to display the top navigation. Is there any way to tell ASPMenu to show only those sites in its tab list a user has the rights to view We just want to avoid the "access denied"-pages.

<SharePoint:AspMenu ID="TopNavigationMenu" runat="server" DataSourceID="topSiteMap"
EnableViewState="false" AccessKey="<%$Resources:wss,navigation_accesskey%>" Orientation="Horizontal"
StaticDisplayLevels="2" MaximumDynamicDisplayLevels="1" DynamicHorizontalOffset="0"
StaticPopOutImageUrl="/_layouts/images/menudark.gif" StaticPopOutImageTextFormatString=""
DynamicHoverStyle-BackColor="#CBE3F0" SkipLinkText="" StaticSubMenuIndent="0" CssClass="ms-topNavContainer">
<StaticMenuStyle />
<StaticMenuItemStyle CssClass="ms-topnav" ItemSpacing="0px" />
<StaticSelectedStyle CssClass="ms-topnavselected" />
<StaticHoverStyle CssClass="ms-topNavHover" />
<DynamicMenuStyle BackColor="#F2F3F4" BorderColor="#A7B4CE" BorderWidth="1px" />
<DynamicMenuItemStyle CssClass="ms-topNavFlyOuts" />
<DynamicHoverStyle CssClass="ms-topNavFlyOutsHover" />
<DynamicSelectedStyle CssClass="ms-topNavFlyOutsSelected" /> </SharePoint:AspMenu>
<SharePoint:DelegateControl runat="server" ControlId="TopNavigationDataSource">
<Template_Controls>
<asp:SiteMapDataSource ShowStartingNode="False" SiteMapProvider="SPNavigationProvider"ID="topSiteMap" runat="server" StartingNodeUrl="sid:1002" />
</Template_Controls>
</SharePoint:DelegateControl>

Best regards,
Christoph.



SharePoint Products and Technologies4  
 
 
Andy Burns





PostPosted: SharePoint - Development and Programming, Is there any way to tell ASPMenu to hide restricted sites Top

If memory serves, the PortalSiteMapProvider navigation provider does security t****. I'd have guessed that might do what you want (I could be wrong, I haven't checked)

http://www.hide-link.com/