How to Hide View All Site content & Recycle Bin Links in SharePoint 2010/2007?
Another frequently asked question: How to Hide the Recycle Bin & View all Site content links in SharePoint site? Yes, we can hide them, not a big deal!
Hide View all site content & Recycle Bin Links from Quick Launch in MOSS 2007
Here is how to hide View All Site Content and Recycle bin links from SharePoint 2007 left navigation. Just add the Content Editor Web part and place the below CSS codes (Add it in Master page if you want to apply for all sites) :
Hide View all site content & Recycle Bin Links in SharePoint 2010:
 CSS classes are a little different.
/*To Hide both */
.s4-specialNavLinkList
{
display:none;
}
/* To Hide Recycle bin */
.s4-rcycl
{
display:none;
}
/* To Hide "All Site Content" */
#ctl00_PlaceHolderLeftNavBar_PlaceHolderQuickLaunchBottom_PlaceHolderQuickLaunchBottomV4_idNavLinkViewAllV4
{
display:none;
}
In Action:
Hide View All Site Content / Recycle Bin Links from everyone, except Site Owners?
Yes, You can set the permission string of these links to hide it from all users except the specified in PermissionString property. Open your master page in SharePoint designer (either MOSS 2007 or SharePoint 2010). In Design view select “All Site content Link” in Tag Properties, Go to PermissionString and Enter the permission string. Say, you want this link to be available only to Site owners, then enter: “FullMask”
You can use: SPSecurityTrimmedControl also to hide All Site Content or Recycle Bin Links from anonymous user.
awesome !
Thanks for you post