Pages Facade
Hey Guys, this
int count;App.WorkWith() .Pages() .Count(out count);int c;var pages = App.WorkWith() .Pages() .Where(p => p.RootNode.Name == "HomePageId") .Count(out c);Response.Write(c.ToString());Hi Steve,
You can also try the one bellow. This lets you work only with back-end or front-end pages:
int count;App.WorkWith() .Pages() .LocatedIn(Telerik.Sitefinity.Fluent.Pages.PageLocation.Frontend) .Count(out count);The following constant is available as a GUID ID in SF 4 to indicate the FrontEnd Tree of pages