HomeDev GuideAPI Reference
Dev GuideAPI ReferenceUser GuideGitHubNuGetDev CommunityDoc feedbackLog In
GitHubNuGetDev CommunityDoc feedback


Dynamic content is deprecated in Optimizely Content Management System (CMS 12). Use blocks instead. While existing solutions will continue to work, you should not build new solutions on this API. It will be phased out in the future.

The following example creates a dynamic content plug-in by implementing the `IDynamicContentView` interface.

For convenience, you inherit `DynamicContentBase` which implements `IDynamicContentBase`. You then add `IDynamicContentView` which supports both MVC and Web Forms.


This example uses the `DynamicContentPlugInAttribute`, but only for registering the plug-in. You can also use the `DynamicContentPlugInAttribute` on a User Control without implementing any interfaces.