Answered Hiding Navigating Up Button

  • Monday, May 21, 2012 4:53 AM
     
     

    Hi All,

    I have created a site Collection which has different Subsites with thier own unique permissions . Now when ever the subsite user loged In to Site he /she can access the Top level site by navigating up button althogh he /she dont have the rights

    Is there any way to disable this? or hide navigating up buton from others users who dont have the access rights.


    Any help appreciated

       

All Replies

  • Monday, May 21, 2012 5:40 AM
     
     
  • Monday, May 21, 2012 9:40 AM
     
     

    Any Idea how can i visible false only the navigating up Button

    Thanks

  • Monday, May 21, 2012 10:18 AM
     
      Has Code

    Remove the .ms-qatbutton in the code provided by Jasper

    <style>
    .s4-breadcrumb-anchor
    {
    visibility: hidden; 
    }
    </style>


    Paul Turner http://redmanta.co.uk/blog Twitter: @RedMantaUK MCTS:WSS,MOSS,2010 MCITP:2010.
    Please remember to click "Propose As Answer" if a post solves your problem or "Vote As Helpful" if it was useful.

  • Monday, May 21, 2012 11:39 AM
     
     

    Thanks Paul Turner ,

    Your suggestion is working 100% only the final suggestion is required i want this function enable for Site Collection Administrator  i mean if the site Collection Administrator login then he should navigate through the all sites inside site collection.

    Any Idea may i have to do the code some thing like event receiver or any thing else.

    Regards,


  • Tuesday, May 22, 2012 7:36 AM
    Moderator
     
     Proposed Has Code

    Hi waheedswe,

    If you want to hide the Navigate Up icon (Breadcrumb) for some users with permissions under particular permission (i.e. site owner), you can use SPSecurityTrimmedControl to hide this Navigate Up icon with using attribution PermissionsString="ManageWeb" in your custom master page (copy from v4.master and customize), customize the code like below, publish and approve this master page, then check result.

    And here are two articles about this topic you can check,

    http://msdn.microsoft.com/en-us/library/ms476607.aspx

    https://www.nothingbutsharepoint.com/sites/eusp/pages/hiding-the-sharepoint-2010-ribbon-from-anonymous-users.aspx

    <asp:contentplaceholder id="PlaceHolderGlobalNavigation" runat="server">
    	 <Sharepoint:SPSecurityTrimmedControl ID="SPSecurityTrimmedControl2" runat="server" PermissionsString="ManageWeb">
        <SharePoint:PopoutMenu
            runat="server"
            ID="GlobalBreadCrumbNavPopout"
            IconUrl="/_layouts/images/fgimg.png"
            IconAlt="Navigate Up"
            IconOffsetX=0
            IconOffsetY=112
            IconWidth=16
            IconHeight=16
            AnchorCss="s4-breadcrumb-anchor"
            AnchorOpenCss="s4-breadcrumb-anchor-open"
            MenuCss="s4-breadcrumb-menu">
            <div class="s4-breadcrumb-top">
                <asp:Label 
                    runat="server" 
                    CssClass="s4-breadcrumb-header" 
                    Text="This page location is:" />
            </div>
            <asp:ContentPlaceHolder id="PlaceHolderTitleBreadcrumb" runat="server">
                <SharePoint:ListSiteMapPath
                    runat="server"
                    SiteMapProviders="SPSiteMapProvider,SPContentMapProvider"
                    RenderCurrentNodeAsLink="false"
                    PathSeparator=""
                    CssClass="s4-breadcrumb"
                    NodeStyle-CssClass="s4-breadcrumbNode"
                    CurrentNodeStyle-CssClass="s4-breadcrumbCurrentNode"
                    RootNodeStyle-CssClass="s4-breadcrumbRootNode"
                    NodeImageOffsetX=0
                    NodeImageOffsetY=353
                    NodeImageWidth=16
                    NodeImageHeight=16
                    NodeImageUrl="/_layouts/images/fgimg.png"
                    RTLNodeImageOffsetX=0
                    RTLNodeImageOffsetY=376
                    RTLNodeImageWidth=16
                    RTLNodeImageHeight=16
                    RTLNodeImageUrl="/_layouts/images/fgimg.png"
                    HideInteriorRootNodes="true"
                    SkipLinkText="" />
                </asp:ContentPlaceHolder>
        </SharePoint:PopoutMenu>
        <div class="s4-die">
            <asp:ContentPlaceHolder id="PlaceHolderGlobalNavigationSiteMap" runat="server" Visible="false">
            </asp:ContentPlaceHolder>
        </div>
    	
    	</Sharepoint:SPSecurityTrimmedControl>
    </asp:contentplaceholder>

    Thanks


    Daniel Yang

    TechNet Community Support

    • Proposed As Answer by Paul Turner _ Tuesday, May 22, 2012 7:46 AM
    •  
  • Thursday, May 24, 2012 6:10 AM
    Moderator
     
     Answered

    Hi waheedswe,

    Please go to the Site Master Page Settings page ( http://TopLevelSite/_Layouts/ChangeSiteMasterPage.aspx  ), then you can Reset all subsites to inherit this site master page setting, here is a similar post,

    http://stackoverflow.com/questions/3532367/sharepoint-2010-how-to-apply-custom-master-page-and-theme-to-all-subsites

    Thanks


    Daniel Yang

    TechNet Community Support