Beispiel #1
0
 private static IList<NavigationItem> GetTertiaryNav(HtmlHelper html, ContentItem subNavItem, bool continueLoop)
 {
     List<NavigationItem> result = new List<NavigationItem>();
     foreach (ContentItem tertiaryItem in html.NavigationPages(subNavItem))
     {
         result.Add(new NavigationItem { Title = tertiaryItem.Title, Url = tertiaryItem.Url, ID = tertiaryItem.ID, ParentUrl = subNavItem.Url, SubNav = continueLoop ? GetTertiaryNav(html, tertiaryItem, false) : null });
     }
     return result;
 }