Turn Features On/Off
To toggle feature sets, go to /Settings/Admin/Features. Simply find the specific feature from the list and click on the switch to set it ON or OFF.
Click save to retain changes.
Advanced Customizations
Feature Registration
The only way to add, or delete feature is via the FeatureRegistration class found on the PlatformCache repo (/PlatformCache/PlatformCache.Data/LifecycleManagement) or via an extension.
To add, simply add this code:
featureService.Register("FeatureName");
Note: Feature names should not contain a space character.
To remove, simply delete that specific line of code that registers the feature.
Feature CSS Classes
When building CSS customizations you can use CSS classes on the body tag to write CSS rules restricted to feature set states. CSS classes for each feature are added to the body tag. These classes can either be in this format "featureName" + _active or "featureName" + _not_active.
As these classes indicate the feature's active state, it will be very helpful on toggling custom styles.
JavaScript Functions
When building front-end customization if you would like to query the state of all feature sets or a particular feature set you can use these globally available JavaScript functions
app.featureSet.isActive("FeatureName");
app.featureSet.getList();
oData API Endpoints
To get all registered features:
Method: GET
Endpoint: /platform/api/GetAvailableFeatureSets
To update a features Active state:
Method: POST
Endpoint: /platform/api/SetFeatureSetState
Data: { "FeatureSetName": stringValue, "Active": booleanValue }