Criteria to filter a language branch


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));

Jun 23, 2010 15:19

Hi Peter

Us one of the overloads for the FindPagesWithCriteria method. One of them takes a language branch. See:

Jun 23, 2010 16:23

Almost to easy! :) Thanks!!

Jun 24, 2010 7:56
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* 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.