예제 #1
0
        // GET: Sitemap
        public override ActionResult Index()
        {
            Item homePage = Sitecore.Context.Database.GetItem(Sitecore.Context.Site.RootPath + Sitecore.Context.Site.StartItem);
            var  sitemap  = SitecoreHelper.GetItem <MenuItem>(homePage.ID.ToGuid());

            SitemapViewModel model = new SitemapViewModel()
            {
                SitemapNodes = sitemap
            };

            return(View("~/Views/Pages/Sitemap.cshtml", model));
        }