none
How to hide Recycling bin and View All Site Content

    Question

  • Is there a way to hide the "View All Site Content" and the "Recycling Bin" without modifying with S Designer.

    Thanks
    Tuesday, June 23, 2009 1:49 AM

Answers

  • Hiding Recycle Bin and All site content in sharepoint 2010 is very simple do the following steps:

    1) open site in sharepoint designer 2010

    2) Click all files, then masterpage, then checkout the master page

    3) go to

      <SharePoint:UIVersionedContent UIVersion="4" runat="server" id="PlaceHolderQuickLaunchBottomV4">
         <ContentTemplate>
          <ul style="display:none" >
           <li>
            <SharePoint:ClusteredSPLinkButton

    4) add statement in bold

    5) check in save

    6) you can use this master page in your solution & provision it


    Thursday, April 05, 2012 3:32 PM
  • The absolutely quickest/easiest way to hide them on one page if you do not want to use SharePoint Designer, CSS files, e t c is to add the following code to the "Source Editor..." in a Content Editor Web Part.

    <style type="text/css">
    .ms-quicklaunchheader{
    display:none;}
    .ms-recyclebin{
    display:none;}
    </style>

    But, of course, if you know how to work with css files like Marc suggested, that is to be prefered!


    Good Luck!
    Jenny


    jennyfi
    Tuesday, June 23, 2009 6:58 AM

All replies

  • You can use CSS to hide them by setting display:none.  You can work with your custom CSS using SharePoint Designer (as Mike points out below!).  I took it from your post that you didn't want to alter the page(s) themselves with SharePoint Designer, but maybe you can use it for CSS?

    There aren't any configuration options to hide these two links, but keep in mind that only people with permissions to use the links will even see them (Contributors, Full Control, etc.).

    M.
    Marc D Anderson - Sympraxis Consulting LLC - Marc D Anderson's Blog
    • Edited by Marc D Anderson MVPMVP Tuesday, June 23, 2009 12:21 PM
    • Proposed as answer by derekb14 Thursday, August 21, 2014 7:52 PM
    • Unproposed as answer by derekb14 Thursday, August 21, 2014 7:52 PM
    Tuesday, June 23, 2009 2:52 AM
  • But what do you use to amend the CSS ? (I always use SPD ...)

    WSS FAQ sites: http://wssv2faq.mindsharp.com and http://wssv3faq.mindsharp.com
    Total list of WSS 3.0 / MOSS 2007 Books (including foreign language) http://wssv3faq.mindsharp.com/Lists/v3%20WSS%20FAQ/V%20Books.aspx
    Tuesday, June 23, 2009 6:41 AM
  • The absolutely quickest/easiest way to hide them on one page if you do not want to use SharePoint Designer, CSS files, e t c is to add the following code to the "Source Editor..." in a Content Editor Web Part.

    <style type="text/css">
    .ms-quicklaunchheader{
    display:none;}
    .ms-recyclebin{
    display:none;}
    </style>

    But, of course, if you know how to work with css files like Marc suggested, that is to be prefered!


    Good Luck!
    Jenny


    jennyfi
    Tuesday, June 23, 2009 6:58 AM
  • You can also install the feature as described in the post Hide the View All Site Content Link. This will require no code, it only works for the View All Site Content Link though, not for the recycle bin.
    Patrik | My Blog
    Sunday, July 05, 2009 5:00 PM
  • Hiding these links with CSS is a "band-aid" fix.  Users are still downloading the HTML for these controls, and users that don't use CSS will still see them in their entirety.  The best option is to remove them from your site's master page entirely.

    First, look for the following lines of code in your master page.  This code renders the "View All Site Content" link:

    <Sharepoint:SPSecurityTrimmedControl runat="server" PermissionsString="ViewFormPages">
    	<div class="ms-quicklaunchheader"><SharePoint:SPLinkButton id="idNavLinkViewAll" runat="server" NavigateUrl="~site/_layouts/viewlsts.aspx" Text="<%$Resources:wss,quiklnch_allcontent%>" AccessKey="<%$Resources:wss,quiklnch_allcontent_AK%>"/></div>
    </SharePoint:SPSecurityTrimmedControl>
    Now, the "Recycle Bin" link should look something like this:
    <SharePoint:SPLinkButton runat="server" NavigateUrl="~site/_layouts/recyclebin.aspx" id="idNavLinkRecycleBin" ImageUrl="/_layouts/images/recycbin.gif" Text="<%$Resources:wss,StsDefault_RecycleBin%>" PermissionsString="DeleteListItems"/>
    Now save, check in, and publish your changes.  I hope this helps!
    Kyle
    Monday, July 06, 2009 1:48 PM
  • Hiding Recycle Bin and All site content in sharepoint 2010 is very simple do the following steps:

    1) open site in sharepoint designer 2010

    2) Click all files, then masterpage, then checkout the master page

    3) go to

      <SharePoint:UIVersionedContent UIVersion="4" runat="server" id="PlaceHolderQuickLaunchBottomV4">
         <ContentTemplate>
          <ul style="display:none" >
           <li>
            <SharePoint:ClusteredSPLinkButton

    4) add statement in bold

    5) check in save

    6) you can use this master page in your solution & provision it


    Thursday, April 05, 2012 3:32 PM
  • Hi,

    Is there any other way of simple clicks to hide that?(Any Out of Box feature?)

    Our team is not willing to edit the master page or any code...

    Regards,

    Pravin Bhosale

    Friday, April 20, 2012 7:31 AM
  • What "statement in bold" ?

    You've mean replace:

    <ul class="s4-specialNavLinkList">

    with

      <ul style="display:none" >

    ?

    Saturday, March 22, 2014 11:01 PM