Nucleus .Net Core CMS

HtmlHelpers.PageMenuHtmlHelper Class

Namespace: Nucleus.ViewFeatures.HtmlHelpers
Assembly: Nucleus.ViewFeatures.dll
Html helper used to render a list of pages.
PageMenu (IHtmlHelper htmlHelper, PageMenu pages, Guid selectedPageId, Int32 maxLevels, Object htmlAttributes)
Returns a list (ul) element containing the site's menu structure.
Parameters
Name Type
htmlHelper Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper
pages Nucleus.Abstractions.Models.PageMenu
selectedPageId Guid
maxLevels Int32
htmlAttributes Object
PageMenuFor (IHtmlHelper htmlHelper, PageMenu pages, Page fromPage, Int32 maxLevels, Object htmlAttributes)
Render the 'a' tag for the specified parentPage, along with its children.
Remarks
This helper is used by the 'Pages' index to expand child page selections.