Tuesday, November 25, 2014

Hide "Recent" from SharePoint 2013 Quick Launch Navigation

Recent section gets added automatically through a Web Control on SharePoint pages. 'Recent' menu is individual to each user! meaning everyone gets their own recent section with links to their recent activities! If you have a requirement to remove (or hide) the "Recent" menu header from the left navigation of SharePoint 2013, Here are some solutions:

sharepoint 2013 hide recent in quick launch
In Publishing sites, You can remove "Recent" section manually by going to : Site Settings >> Look and Feel >> Navigation (or Quick launch on Non-publishing sites!) .
hide recent in sharepoint 2013
How to hide recent in SharePoint 2013 using jQuery:
Edit the page, Add a script editor web part and place this code in it (or master page html)
<script src="http://code.jquery.com/jquery-latest.min.js" type="text/javascript"></script>

<script type="text/javascript">
jQuery(document).ready(function() {
  jQuery(".ms-core-listMenu-item:contains('Recent')").parent().hide();
});
</script>

Hide recent heading in SharePoint 2013 Quick launch with PowerShell:
You can also remove "Recent" section using PowerShell by deleting recent header.

PowerShell script to delete recent group in SharePoint 2013 left navigation:
Add-PSSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue

$web = Get-SPWeb "http://your-sharepoint-site-url"

#Process Quick launch
for ($i = $web.Navigation.QuickLaunch.Count-1; $i -ge 0; $i--)
{
    $node = $web.Navigation.QuickLaunch[$i];

    if($node.Title -eq "Recent")
        {
            $node.Delete();
            Write-host "Recent section removed from $($web.Title)"
        }
} 
You can restrict "Recent" menu by Creating a SharePoint group, Configure the audience targeting on the menu item only to the group!



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:

4 comments :

  1. Finally! Instructions for using jQuery that were simple to follow and actually work. Thank you!

    ReplyDelete
  2. I used audience targeting to hide the Recent node. I created PowerShell script to create the nodes in all sub-sites if it did not already exist and applied audience targeting. This seemed to work fine but then when I added a new document library to the site, SharePoint automatically added another Recent node besides the audience targeted Recent node. Any ideas?

    ReplyDelete

Please Login and comment to get your questions answered!


You might also like:

Related Posts Plugin for WordPress, Blogger...