I am currently upgrading a site to run under EPiServer CMS 6 R2
One thing that struck me was that I got zero results back when using code that earlier had been tested and worked.
The code below works fine in CMS 6.0:
After the R2 upgrade that code yielded no results.
The solution is to add null as a parameter for language branch as this:
The null in this case means any language.
I had earlier run into another problem using PageType Builder and learned to add the extension method .AsTyped() if the code yielded no result when searching for typed pages.
To be totally confident that my code wont break I now have to create a search and replace with:
The big question is why the code broke after the R2 upgrade? I can’t find any documentation stating that you must enter null as language branch.
What changes have been made to the FindPagesWithCriteria method?