In SharePoint 2013, we have a new site template called Developer Site Template. It is a site template, which is used extensively for app development and you can only deploy apps for SharePoint to a Developer Site.
I have a scenario, where I need to enable Developer Site Collection feature. For an existing Site Collection, it may be team site or publishing site. There isn't a button in the Site Collection features to allow you to enable this.
If you are using SharePoint 2013 On-Premises, you’d just run Enable-SPFeature, which is given below.
Enable-SPFeature 94c94ca6-b32f-4da9-a9e3-1f3d343d7ecb –url http://gowthamr.sharepoint.com
With SharePoint Online, we can't do this directly, so I have created a simple method to solve this. We can run this script in our Internet Browser console.
We have already seen how to activate the developer site feature, using JSOM. Now, we are goin to use CSOM method.
I have a scenario, where I need to enable Developer Site Collection feature. For an existing Site Collection, it may be team site or publishing site. There isn't a button in the Site Collection features to allow you to enable this.
If you are using SharePoint 2013 On-Premises, you’d just run Enable-SPFeature, which is given below.
Enable-SPFeature 94c94ca6-b32f-4da9-a9e3-1f3d343d7ecb –url http://gowthamr.sharepoint.com
With SharePoint Online, we can't do this directly, so I have created a simple method to solve this. We can run this script in our Internet Browser console.
We have already seen how to activate the developer site feature, using JSOM. Now, we are goin to use CSOM method.
- FeatureDefinitionScope Enumeration.
- public enum FeatureDefinitionScope.
Member name description
None- The feature scope is not specified. The value = 0.
Farm Enumeration values specify that the feature scope has to be at the Farm level. The value = 1.
Site Enumeration values specify that the feature scope has to be at the Site Collection level. The value = 2.
None- The feature scope is not specified. The value = 0.
Farm Enumeration values specify that the feature scope has to be at the Farm level. The value = 1.
Site Enumeration values specify that the feature scope has to be at the Site Collection level. The value = 2.
Join the conversation! Your thoughts help the community grow.