public void SetupSites() { Log.Debug("Starting SetupSites - setting up site collection"); CustomActionsManager.SetUpCustomActions(ClientContext, ConfigurationSiteCollection.CustomActionsPrefix, ConfigurationSiteCollection.CustomActions); PermissionManager.SetUpCustomPermissionLevels(ClientContext, ConfigurationSiteCollection.PermissionLevels); FeatureManager.ActivateSiteCollectionFeatures(ClientContext, ConfigurationSiteCollection.SiteFeatures); EnsureAndConfigureWebAndActivateFeatures(ClientContext, null, ConfigurationSiteCollection.RootWeb); }
/// <summary> /// Will only activate site collection features or rootweb's web features /// </summary> public void ActivateContentTypeDependencyFeatures() { FeatureManager.ActivateSiteCollectionFeatures(ClientContext, ConfigurationSiteCollection.SiteFeatures, true); FeatureManager.ActivateWebFeatures(ClientContext, ClientContext.Web, ConfigurationSiteCollection.RootWeb.WebFeatures, true); }
public void SetupSites() { Log.Debug("Starting SetupSites - setting up site collection"); FeatureManager.ActivateSiteCollectionFeatures(ClientContext, ConfigurationSiteCollection.SiteFeatures); EnsureAndConfigureWebAndActivateFeatures(ClientContext, null, ConfigurationSiteCollection.RootWeb); }