Subscribe: SharePoint SharePoint SharePoint

Labels

Showing posts with label MOSS 2007. Show all posts
Showing posts with label MOSS 2007. Show all posts

Saturday, July 6, 2013

Hiding Quick Launch in SharePoint

Hiding the quick launch in SharePoint can be done in a number of different ways but the easiest way is by overriding the current css class implemented by "Quick Launch"  in Content Editor WebPart (CEWP) :


Paste the following code in a CEWP and it will hide the quick launch bar :
SP2010
#s4-leftpanel{
display:none
}
.s4-ca{
margin-left:0px
}

SP2013
.ms-core-navigation { DISPLAY: none }
#contentBox { margin-left: 0px }

Delete a list in sharepoint 2010 using powershell

Deleting a list through UI is sometimes a hectic job when your server is slow, so a better approach is to delete the list using powershell. This method is much faster and reliable :

$site = Get-SPSite <Site Collection Name>
$web= $site.openweb()
$lists = $web.Lists
$getList = $web.lists["ListName"]
$getList.Delete()

NOTE : Replace <Site Collection Name> with your current Site Collection Name.
            : You should have required access over ContentDB to delete the list using powershell.