Filtering pages by category

Vote:
 
I can't get this filter to work by filtering on the categories name, just the categories id will work, why?. string categories = "901,902,903"; PropertyCriteria criteria = new PropertyCriteria(); criteria.Type = PropertyDataType.Category; criteria.Name = "PageCategory"; criteria.Value = categories; criteria.Condition = EPiServer.Filters.CompareCondition.Equal; PropertyCriteriaCollection col = new PropertyCriteriaCollection(); col.Add(criteria); PageDataCollection pages; pages = Global.EPDataFactory.FindPagesWithCriteria(Global.EPConfig.StartPage, col, AccessLevel.Read);
#12821
Mar 25, 2008 18:35
* 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.