London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!
AI OnAI Off
London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!
// 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);