0

To hide the Quick Launch in Sharepoint2010 List i.e. AllItems.aspx page I use:

.ms-quicklaunch
{
display:none;
}

In my scenario I have more than 200+ Document Libraries and List, in which each and every time I need to customize the code. Is there any out of box features?

I have tried by going to Site Setting-->Tree View-->Navigation and uncheck the Quick Launch box but here still All Site Contents and Recycle bin is visible.

5
  • 1
    you can customize your masterpage Commented Jan 11, 2016 at 7:59
  • 1
    I would say you need to customize your masterpage. Commented Jan 11, 2016 at 8:08
  • You can use PowerShell with CSOM framework to implement the functionality. 1) access the spsite 2) get-spweb 3) use foreach splist that has the type == DocumentLibrary then get the allitems.aspx file and apply the css. Commented Jan 11, 2016 at 8:27
  • Refer this link using SSOM : sharepoint.stackexchange.com/questions/83249/…, Add-PSSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue $web = Get-SPWeb "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)" } } Commented Jan 11, 2016 at 8:30
  • foreach (SPList list in web.Lists) { if (!(list is SPDocumentLibrary)) { continue; } if (list.Fields.ContainsField(strFieldName)) { //TODO, modify set of items } } Commented Jan 11, 2016 at 8:35

2 Answers 2

0

Please refer this link and this and modify above mentioned script, I have given and you will get your functionality. Below is a sample one :

  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];
        {
          $node.Delete();
         Write-host "quick launch removed from $($web.Title)"
         }
     }
0

Are you already using custom style template for your site? This could and probably should be added using such and implement it to a masterpage as already suggested in the comments.

By using a style template the changes can be tracked better compared to changes done using PowerShell. Also you can switch back to use the Quick Launch menu on a smaller scope by using different style template. Also the styling is auto-applied assuming the same masterpage is inherited on new sub-sites, pages, etc.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.