Render content
Add editing attributes
When you work with content data in Optimizely Content Management System (CMS), the default way to render content in a template is to use the PropertyFor helper, @Html. PropertyFor (see EPiServer.
Display options
When working with content in a content area in Optimizely Content Management System (CMS 11), editors often like to specifically choose how to lay out the content, choosing which rendering template should display each item. Display options let developers specify which render templates are available for selection in the user interface.
Preview rendering for blocks
The preview adds on-page editing functionality and a realistic view of the block's appearance when added to content areas with different widths. Shared blocks are rendered in the context of a page, for example, inside a content area.
Render content
Using MVC, the rendering is based on controllers and views, which can be associated with templates for displaying content in certain contexts, for example, inside other content such as a page or through different devices and channels. You can control the rendering of any type of content in Optimizely Content Management System (CMS).
Select templates
The resulting rendering template for a requested content instance is selected based on page or partial renderers, tags, and active display channels. A page or a block can have multiple associated templates; for example, one for a web channel and one for a mobile device.
TemplateDescriptor and tags
TemplateDescriptor lets you add metadata when registering templates for content types, and tags can be used, for example, to control the rendering of objects in a content area. A page or a block can have multiple associated templates, for example, one for a web channel and one for a mobile device.
Use data source controls
One of the more influential groups of controls included in Optimizely Content Management System (CMS) is the data source controls. One of the major benefits of using these controls is that they minimize the need for code-behind for day-to-day operations involving reading data and populating various lists, trees, and so on.
View models and partial views
In Optimizely Content Management System (CMS), a template can correspond to an MVC controller and a view. The controller selects the view to display.