I am writing powershell scripts and have been trying to find a solution for this but haven't been able to. I just wanted to find out how to hide the quicklaunch using powershell. Is it a property of the sitecollection or a site?
Tell me more
×
SharePoint Stack Exchange is a question and answer site for
SharePoint enthusiasts. It's 100% free, no registration required.
|
you cant hide it using powershell as it is based on core.css. if you want to suppress it you have to put javascript/css to hide navigation and refrenced it in MasterPage. |
|||
|
|
Try This, It should work for you. $spSite = Get-SPSite http://intranet.contoso.com $spWeb = $spSite.OpenWeb(); $spWeb.QuickLaunchEnabled = false; $spWeb.Update(); |
|||
|
|
If you would like to hide the quick launch in a particular page in a site its better to use css for it. Just open the site using sharepoint designer move to the exact page where you want to hide the Quick Launch. On the Top of the Sharepoint Designer you can find a button called Advance Mode Click on it and now you be able to edit the code within the master pages. Within any content add the following style.
Thanks. |
|||
|
|
