A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More.
AI OnAI Off
A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn 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