I'm trying to filter out the pages belonging to the current language branch but when I add the criteria I get an empty result. How come this one is not ok?
criterias.Add(BlogUtil.CreateCriteria(CompareCondition.Equal, "LanguageBranch", PropertyDataType.String, CurrentPage.LanguageBranch, true));
Us one of the overloads for the FindPagesWithCriteria method. One of them takes a language branch. See: http://www.frederikvig.com/2009/10/episerver-findpageswithcriteria-and-findallpageswithcriteria/
Almost to easy! :) Thanks!!