Tuesday, August 23, 2011

Hide a list in SharePoint 2010

 

You can use Windows PowerShell to hide a list in SharePoint 2010. Simply store an instance of an SPList Object, set the Hidden property to $true and update the SPList object.

PS > $spWeb = Get-SPWeb http://sp01/site

PS > $spList = $spWeb.GetList("http://sp01/site/Lists/MyList")

PS > $spList.Hidden = $true

PS > $spList.Update()

No comments:

Post a Comment

Access to XMLHttpRequest at 'from origin has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https. .net core angular

Issue: The angular application was getting error from API that the origin has been blocked by CORS policy. Solution: Make sure that the...