I am working on a simple user control's code behind and need ONLY the published front end page nodes. I thought I would get that from the following, but I was wrong. It also returns unpublished and draft pages.
var provider = SiteMapBase.GetSiteMapProvider("FrontendSiteMap");
Any idea how to either:
a) filter this provider for only published SiteMapNodes (or functional equivalent)
b) determine if a given SiteMapNode (or functional equivalent) from this provider is published.
Is there a Sitefinity wrapper for these objects that can determine if a given node is published? I know there is a fluent syntax* to get published pages, but frankly without good examples or published source, I cannot do as much with the collection that is returned. It is much more cumbersome to select subsets of a query than to just navigate the node tree.
*This is the classic example of using fluent syntax to get a collection of published pages:
var publishedPages = App.WorkWith().Pages().ThatArePublished().LocatedIn(Telerik.Sitefinity.Fluent.Pages.PageLocation.Frontend).Where(p => p.ShowInNavigation ==
).OrderBy(p => p.Ordinal);