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
public PageDataCollection findPagesWithFilename(PageReference pageLink, string filename) { PageDataCollection pages = new PageDataCollection(); foreach(PageData pd in Global.EPDataFactory.GetChildren(pageLink)) { string temp = EPiServer.DataAbstraction.PageType.Load(pd.PageTypeID).FileName; if(temp.Substring(temp.LastIndexOf("/")+1) == filename) pages.Add(pd); pages.Add(findPagesWithFilename(pd.PageLink,filename)); } return pages; }