Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
AI OnAI Off
Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
// subscribe to all PageDataCollection colPages = new PageDataCollection(); PropertyCriteriaCollection col = new PropertyCriteriaCollection(); PropertyCriteria crForm = new PropertyCriteria(); crForm.Type = PropertyDataType.Boolean; crForm.Condition = CompareCondition.Equal; crForm.Name = "EPSUBSCRIBE"; crForm.Value = "true"; col.Add(crForm); colPages = Global.EPDataFactory.FindPagesWithCriteria(EPiServer.Global.EPConfig.StartPage,col); // searching through the entire site!! SubscriptionInfo info = new SubscriptionInfo(savedUser); for (int i=0; i < colPages.Count; i++) { info.SubscribeTo(colPages[i].PageLink); }
Thanks, Danie