Nucleus .Net Core CMS

HtmlHelpers.RenderPageContentHtmlHelper Class

Namespace: Nucleus.ViewFeatures.HtmlHelpers
Assembly: Nucleus.ViewFeatures.dll
Html helper used to render the modules which are within the specified pane for the page being rendered.

Remarks

The RenderPageContentHtmlHelper is used by Layouts.

Methods

RenderPaneAsync (IHtmlHelper,String) Method

RenderPaneAsync (IHtmlHelper htmlHelper, String paneName)
Renders the modules which are within the specified pane for the page being rendered.
Parameters
Name Type
htmlHelper Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper
paneName String
Examples
@Html.RenderPaneAsync("ContentPane")
Remarks
Use this Html Helper in custom Layouts to render a Layout pane.

RenderEditorAsync (IHtmlHelper,PageModule) Method

RenderEditorAsync (IHtmlHelper htmlHelper, PageModule moduleInfo)
Render a module editor for the module specified by moduleInfo.
Parameters
Name Type
htmlHelper Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper
moduleInfo Nucleus.Abstractions.Models.PageModule

The Models.PageModule to render the editor for.

Remarks
This overload renders a container around the module content.

RenderEditorAsync (IHtmlHelper,PageModule,Boolean) Method

RenderEditorAsync (IHtmlHelper htmlHelper, PageModule moduleInfo, Boolean renderContainer)
Render a module editor for the module specified by moduleInfo.
Parameters
Name Type
htmlHelper Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper
moduleInfo Nucleus.Abstractions.Models.PageModule

The Models.PageModule to render the editor for.

renderContainer Boolean

Specifies whether to render a container around the module content.