Try our conversational search powered by Generative AI!

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
Oct 25, 2006 18:50
* 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.