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.

  • 1
    you can customize your masterpage – Bhaskar Dhone Jan 11 '16 at 7:59
  • 1
    I would say you need to customize your masterpage. – Christoffer Jan 11 '16 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. – userAZLogicApps Jan 11 '16 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)" } } – userAZLogicApps Jan 11 '16 at 8:30
  • foreach (SPList list in web.Lists) { if (!(list is SPDocumentLibrary)) { continue; } if (list.Fields.ContainsField(strFieldName)) { //TODO, modify set of items } } – userAZLogicApps Jan 11 '16 at 8:35
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, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.