Skip to content

EPiServer Integration

Valdis Iljuconoks edited this page Sep 5, 2015 · 6 revisions

Overview

Using FeatureSwitch library it's really easy to define feature that is enabled or disabled depending on environment, context or external circumstances. FeatureSwitch EPiServer integration library provides an easy way to integration UI Control Panel into EPiServer CMS platform for enabling or disabling particular feature on demand.

Setup

No special setup is needed in order to integrate FeatureSwitch EPiServer library it's done automatically by InitializableModule (code)

Control Panel

Control panel link is registered using GuiPlugin attribute from EPiServer library.

Control Panel looks the same as mentioned in Asp.Net Mvc integration library.

Security

Currently UI Control Panel is mapped to ~/modules/FeatureSwitch route. By default following roles will have access to this route:

  • Administrators
  • CmsAdmins
  • WebAdmins

Currently if you are using InitializableModule there is no easy way to customize this other than registering route and securing location by yourself (copy code from FeatureSwitchInit.cs).

EPiServer Related Strategies

These are few strategies that are defined in EPiServer package and are mainly used in EPiServer context:

  • EPiServerDatabase - used if feature state is stored in EPiServer Dynamic Data Store storage
  • EPiServerSite - if feature state is dependent on the EPiServer site in which current request is made.

More Information

More information about extending FeatureSwitch library.