Try our conversational search powered by Generative AI!

Fluent FindPagesWithCriteria

Vote:
 

I'm sure this has done before, but I wrote this for our latest project and I like it so much that have to share it :)

https://gist.github.com/3755623

Now you can do a findpageswithcriteria as easy as.

.FindPages
.Query(PageReference.RootPage, CurrentPage.LanguageID)
.And()
.ByPageType(11)
.And()
.ByAllCategories(CurrentPage.Categories)
.OrderByDate(true)
.Execute();

Done.

#61482
Sep 20, 2012 14:40
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.