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!
If anyone is wondering it does work.
var criteria = new PropertyCriteria(){
Condition = CompareCondition.Equal,
Value = "false",
Type = PropertyDataType.Boolean,
Required = true,
Name = "PageVisibleInMenu"
};
PropertyCriteriaCollection criterias = new PropertyCriteriaCollection(); PropertyCriteria criteria = new PropertyCriteria(); criteria.Condition = CompareCondition.Equal; criteria.Type = PropertyDataType.Category; criteria.Value = "false"; criteria.Name = "VisibleInMenu"; criteria.Required = true; criterias.Add(criteria); PageDataCollection ChildPages = EPiServer.Global.EPDataFactory.FindPagesWithCriteria(CurrentPage.PageLink, criterias); SideInfo.PageLink = ChildPages[0].PageLink;
I've also tested setting Value to "true".