@inherits UmbracoTemplatePage @{ var home = CurrentPage.Site(); var loginStatus = Members.GetCurrentLoginStatus(); var admin = Members.IsMemberAuthorized(allowGroups: new List{"Administrator"}); } @if (home.Children.Any()) { @* Get the first page in the children *@ } @helper childPages(dynamic pages) { @* Ensure that we have a collection of pages *@ if (pages.Where("Visible").Any()) { } }