Calling all developers! We invite you to provide your input on Feature Experimentation by completing this brief survey.
Calling all developers! We invite you to provide your input on Feature Experimentation by completing this brief survey.
// Code below needs these namespaces
using EPiServer;
using EPiServer.Core;
using EPiServer.Filters;
...
PropertyCriteriaCollection criterias =
new PropertyCriteriaCollection();
PropertyCriteria criteria = new PropertyCriteria();
criteria.Condition = CompareCondition.Equal;
criteria.Type = PropertyDataType.PageType;
criteria.Value = "3";
criteria.Name = "PageTypeID";
criteria.Required = true;
criterias.Add(criteria);
PageDataCollection pages =
Global.EPDataFactory.FindPagesWithCriteria(
Global.EPConfig.StartPage, criterias);