@inherits umbraco.MacroEngines.DynamicNodeContext @* Ensure that the Current Page has children, where the property umbracoNaviHide is not True *@ @if (Model.Children.Where("Visible").Any()) { @* Get the first page in the children, where the property umbracoNaviHide is not True *@ var naviLevel = Model.Children.Where("Visible").First().Level; @* Add in level for a CSS hook *@ } @helper childPages(dynamic pages) { @* Ensure that we have a collection of pages *@ if (pages.Any()) { @* Get the first page in pages and get the level *@ var naviLevel = pages.First().Level; @* Add in level for a CSS hook *@ } }