private IList<NavigationItem> CreateMenu(StartPage startPage) { var list = new List<NavigationItem>(); return _blockHelper.GetContentsOfType<BaseTabBlock>(startPage.MainContentArea) .Select(x => new NavigationItem() { Name = x.TabName, Link = x.TabName }) .ToReadOnlyList(); }
private IList<NavigationItem> CreateMenu(StartPage startPage) { var list = new List<NavigationItem>(); return _epiServerDependencies.ContentRepository.GetChildren<PageData>(startPage.ContentLink) .Where(x => x.VisibleInMenu == true) .Select(CreatNavigationItem).ToReadOnlyList(); }
private IList<NavigationItem> CreateMenu(StartPage startPage) { var menuRepo = new MenuRepository(_epiServerDependencies); return menuRepo.GetMainMenu(); }