Try our conversational search powered by Generative AI!

Clarification on PageDataCollection

Vote:
 
My PageDataCollection some times returns all pages (irrespective of the PageStatus like - Published, Expired ...) and at other times returns only pages that are Published. Is there anything wrong with the way I use "FindPagesWithCriteria". PageDataCollection colPages = new PageDataCollection(); PropertyCriteriaCollection col = new PropertyCriteriaCollection(); PropertyCriteria crForm = new PropertyCriteria(); crForm.Type = PropertyDataType.String; crForm.Condition = CompareCondition.Equal; crForm.Name = "PageTypeName"; crForm.Value = strPageTypeName; crForm.Required = true; col.Add(crForm); colPages = Global.EPDataFactory.FindPagesWithCriteria(EPiServer.Global.EPConfig.StartPage,col);
#12720
Jul 24, 2006 16:24
* 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.