Now that you already know how to create a Sandboxed Solution, in a typical scenario Farm Admins need some one or some mechanism to evaluate or validate the solutions developed using Sandboxed solutions by the developers. Here is the example of how and what you need to inherit and extend the ootb available classes to write your own.
http://codename-srini.blogspot.com/2010/01/sharepoint-2010-sandboxed-solutions.html
http://spsolutionvalidator.codeplex.com/
Showing posts with label SharePoint. Show all posts
Showing posts with label SharePoint. Show all posts
2011-04-26
SPFileVersionCollection.RecycleAll Method
Recycles all file version objects in the collection.
http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spfileversioncollection.recycleall.aspx
http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spfileversioncollection.recycleall.aspx
Apply theme programmatically Sharepoint 2010
We can manage the theme from UI of Sharepoint also but sometimes we have a requirement like we need to manage theme through a feature i.e. on feature activation we need to apply some theme and on deactivation remove that theme and apply the default no-theme of Sharepoint.
Add the Microsoft.SharePoint.Utilities reference.
http://www.directsharepoint.com/2011/03/programmatically-apply-theme-to-web-in.html
Add the Microsoft.SharePoint.Utilities reference.
http://www.directsharepoint.com/2011/03/programmatically-apply-theme-to-web-in.html
Set Site Collection Search Settings by PowerShell
Setting your Site Collection Search Settings by Powershell, what a tongue twister, try saying that six times fast. Setting your search settings via PowerShell is not something that is immediately obvious and requires a bit of digging.
First – how do we see what settings we’ve currently got? First lets get our web and throw it into a variable to make it a bit easier to handle.
$web = get-spweb http://address
By digging down through the properties of the $web object we can see two areas that might house this : allProperties and Properties. I do not know why there are two property areas, seems a little confusing.
http://mrhodes.net/2010/09/14/set-site-collection-search-settings-by-powershell/
First – how do we see what settings we’ve currently got? First lets get our web and throw it into a variable to make it a bit easier to handle.
$web = get-spweb http://address
By digging down through the properties of the $web object we can see two areas that might house this : allProperties and Properties. I do not know why there are two property areas, seems a little confusing.
http://mrhodes.net/2010/09/14/set-site-collection-search-settings-by-powershell/
Subscribe to:
Posts (Atom)