@inherits Umbraco.Web.Mvc.UmbracoTemplatePage @using Umbraco.Core.Models @using Umbraco.Web @* This snippet creates links for every single page (no matter how deep) below the page currently being viewed by the website visitor, displayed as nested unordered HTML lists. *@ @{ var selection = Model.Content.Children.Where(x => x.IsVisible()).ToArray(); } @* Ensure that the Current Page has children *@ @if (selection.Length > 0) { @* Get the first page in the children, where the property umbracoNaviHide is not True *@ var naviLevel = selection[0].Level; @* Add in level for a CSS hook *@ } @helper ChildPages(IPublishedContent[] selection) { @* Ensure that we have a collection of pages *@ if (selection.Length > 0) { @* Get the first page in pages and get the level *@ var naviLevel = selection[0].Level; @* Add in level for a CSS hook *@ } }