Nucleus .Net Core CMS

Layout.IModuleContentRenderer Interface

Namespace: Nucleus.Abstractions.Layout
Assembly: Nucleus.Abstractions.dll
Defines the interface for the module content renderer.
A module content renderer renders the modules that make up a "pane" in a page.
RenderControlPanelExtension (ViewContext viewContext, Site site, ControlPanelExtensionDefinition controlPanelExtension)
Render the specified control panel extension.
Parameters
Name Type
viewContext Microsoft.AspNetCore.Mvc.Rendering.ViewContext
site Nucleus.Abstractions.Models.Site
controlPanelExtension Nucleus.Abstractions.Models.ControlPanelExtensionDefinition

Specifies the control panel extension being rendered.

RenderModuleEditor (ViewContext viewContext, Site site, Page page, PageModule moduleInfo, LocalPath localPath, Boolean renderContainer)
Render a module's "Edit" action.
Parameters
Name Type
viewContext Microsoft.AspNetCore.Mvc.Rendering.ViewContext
site Nucleus.Abstractions.Models.Site
page Nucleus.Abstractions.Models.Page
moduleInfo Nucleus.Abstractions.Models.PageModule

Specifies the module being rendered.

localPath Nucleus.Abstractions.Models.LocalPath
renderContainer Boolean

Specifies whether to wrap the module output in a container.

RenderModuleView (ViewContext viewContext, Site site, Page page, PageModule moduleInfo, LocalPath localPath, Boolean renderContainer)
Render a module's "View" action.
Parameters
Name Type
viewContext Microsoft.AspNetCore.Mvc.Rendering.ViewContext
site Nucleus.Abstractions.Models.Site
page Nucleus.Abstractions.Models.Page
moduleInfo Nucleus.Abstractions.Models.PageModule

Specifies the module being rendered.

localPath Nucleus.Abstractions.Models.LocalPath
renderContainer Boolean

Specifies whether to wrap the module output in a container.

RenderPaneAsync (ViewContext viewContext, Context context, String paneName)
Render the module instances within the specified pane.