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
-
HtmlHelper
helper - The html helper in whose context the list should be created
-
ContentReference
rootLink - 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.
-
bool
includeRoot - Wether an element for the root page should be returned
-
bool
requireVisibleInMenu - Wether pages that do not have the "Display in navigation" checkbox checked should be excluded
-
bool
requirePageTemplate - Wether page that do not have a template (i.e. container pages) should be excluded