How to get the toplevel pages
I want to get level-1 or toplevel pages. I plan to use sth. like "Telerik.Sitefinity.Web.BackendSiteMap.GetSiteMapProvider("rootname").RootNode; "
One question is what the parameter "rootname" to GetSiteMapProvider actually means and how I set this argument ? I think I can use "Telerik.Sitefinity.Web.BackendSiteMap.GetCurrentProvider().RootNode; " instead.
Hi,
If you want to get first level pages you can use the following source code:
var manager = PageManager.GetManager();
var allPages = manager.GetPageNodes().Where(pt => pt.Parent.Title ==
"Pages"
);
I do think so
That's the one worked with me
ParentId == SiteInitializer.CurrentFrontendRootNodeId