Quantcast
Channel: DevNet Questions
Viewing all articles
Browse latest Browse all 8901

Site map get all Links from the tree using kentico mvc

$
0
0
Hello i have a view to dispaly site map I want get all the pages under the root I already tried here is controllerMultiDocumentQuery pg = DocumentHelper.GetDocuments() .Path(@/%@, PathTypeEnum.Children) //.ExcludePath(@/Products/Sale@, PathTypeEnum.Section) .OnSite(@dancing@) .Columns(@DocumentName@) .Culture(@en-us@); TempData[@pages@] = pg; ViewBag.pg = TempData[@pages@]; return View(pg); here is my view but still get it empty`@{ var pages = ViewBag.pg; }@foreach (var page in pages) {@p@@page.GetValue(@DocumentName@)@/p@ }`

Viewing all articles
Browse latest Browse all 8901

Trending Articles