Type HtmlHelperExtensions
Namespace Geta.EPi.Extensions.MenuList
Public static methods
IHtmlString MenuList(this HtmlHelper helper, ContentReference rootLink, Func<MenuItem, HelperResult> itemTemplate, bool includeRoot, bool requireVisibleInMenu, bool requirePageTemplate)
Returns an element for each child page of the rootLink using the itemTemplate.
Filter by access rights and publication status.
Parameters
-
HtmlHelperhelper - The html helper in whose context the list should be created
-
ContentReferencerootLink - A reference to the root whose children should be listed
-
Func<MenuItem, HelperResult>itemTemplate - A template for each page which will be used to produce the return value. Can be either a delegate or a Razor helper.
-
boolincludeRoot - Wether an element for the root page should be returned
-
boolrequireVisibleInMenu - Wether pages that do not have the "Display in navigation" checkbox checked should be excluded
-
boolrequirePageTemplate - Wether page that do not have a template (i.e. container pages) should be excluded