Class IContentDataExtensions
Contains extension methods related to IContentData for System.Web.Mvc.HtmlHelper.
Inheritance
Inherited Members
Namespace: EPiServer.Web.Mvc.Html
Assembly: EPiServer.Cms.AspNet.dll
Version: 11.20.7Syntax
public static class IContentDataExtensions
Fields
InsideContentAreaMarker
Key that is used to define if a content instance is rendererd inside a content area.
Declaration
public const string InsideContentAreaMarker = "EPi:InsideContentArea"
Field Value
| Type | Description |
|---|---|
| System.String |
Methods
RenderContentData(HtmlHelper, IContentData, Boolean)
Calls the render of the block to render the block context to the stream.
Declaration
public static void RenderContentData(this HtmlHelper html, IContentData contentData, bool isContentInContentArea)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Web.Mvc.HtmlHelper | html | The HTML. |
| IContentData | contentData | The content data. |
| System.Boolean | isContentInContentArea | Flag that indicates if the content is rendered inside a content area. |
RenderContentData(HtmlHelper, IContentData, Boolean, TemplateModel, IContentRenderer)
Calls the render of the block to render the block context to the stream.
Declaration
public static void RenderContentData(this HtmlHelper html, IContentData contentData, bool isContentInContentArea, TemplateModel templateModel, IContentRenderer contentRenderer)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Web.Mvc.HtmlHelper | html | The HTML. |
| IContentData | contentData | The content data. |
| System.Boolean | isContentInContentArea | Flag that indicates if the content is rendered inside a content area |
| TemplateModel | templateModel | The template model. |
| IContentRenderer | contentRenderer | The content renderer. |
RenderContentData(HtmlHelper, IContentData, Boolean, String)
Calls the renderer of the block to render the block context to the stream.
Declaration
public static void RenderContentData(this HtmlHelper html, IContentData contentData, bool isContentInContentArea, string templateTag)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Web.Mvc.HtmlHelper | html | The HTML. |
| IContentData | contentData | The content data. |
| System.Boolean | isContentInContentArea | A flag indicating if the content is rendered inside a content area. |
| System.String | templateTag | A tag used to resolve the content template to use. |