Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
The dynamic content function in EPiServer allows developers to create functionality in code which will then be utilized by an editor working in the HTML editor.
A Dynamic Content class does not define a whole page, rather just a small section of it. This makes it suitable for smaller functionality that will be inserted inline into texts on the site by the editor. User Controls can be used to implement the user interface part of a dynamic content object. A nice analogy would be a .NET UserControl, which in fact can be used to implement the user interface of a dynamic content object.
Dynamic Content has the following advantages:
The Dynamic Content concept was introduced in EPiServer CMS before blocks became available. Blocks and dynamic content are somewhat overlapping concepts and we generally recommend blocks where possible. Since EPiServer CMS 7.5, it's possible to drag and drop a block into a rich text area which makes it possible to use the block as a "dynamic content" in the text.
The main limitation with blocks in rich text is that this is always treated as a block level element. Dynamic content can be treated as either an inline or block element. So if you need to insert inline content, for instance the latest company results or a phone number, dynamic content is still the preferred way to do this.
Dynamic Content has functionality to auto-generate an editor for the settings for dynamic content. This still uses the editing system that was used in EPiServer CMS 6; this system has some limitations that you should be aware of if you want to use the automatic editing functionality:
These limitations are only valid when you are using the auto-generated UI. You can always create your own editorial UI for your dynamic content to overcome most of these limitations.
When developing dynamic content, consider the following:
Last updated: Feb 23, 2015