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