Friday, July 9, 2010

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!
How to hide View All site content, Recycle Bin Links in SharePoint

Here is How We Hide View all site content & Recycle Bin Links from Quick Launch in MOSS 2007: 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) :
<style>

.ms-quicklaunchheader{display: none;}

.ms-recyclebin{display: none;}

</style>

Hide View all site content & Recycle Bin Links in SharePoint 2010:
 CSS classes are 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 from SharePoint
Want to 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"
Hide Recycle Bin & View all site content from quick launch
You can use: SPSecurityTrimmedControl also to hide All Site Content or Recycle Bin Links from anonymous user. 



You might also like:
SharePoint Usage Reports
Usage reports, collaboration and audit for SharePoint.
Document SharePoint Farm
Automatically generate SharePoint documentation.
*Sponsored


Check out these SharePoint products:

2 comments :

Please Login and comment to get your questions answered!

You might also like:

Related Posts Plugin for WordPress, Blogger...