Just root items
How do I go about getting JUST the root nodes in the sitemap with the Facade?
I have the menu bound to a service so I can get the children okay, but a bit unsure about just Level 0. Tried searching the forums and docs, but couldn't find what I needed.
Hello Steve,
You can use this code
var pages = App.WorkWith().Pages().Where(p => p.Parent.Id == SiteInitializer.FrontendRootNodeId);