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@
}`
↧