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.
Bump
I Am having the same issue with FindPagesWithCriteria. Works locally but not on test server. I fetch the pagetypeid with code so I know it's FindPagesWithCriteria that is the problem. Did you get any answer why it didn't work on your test server. My only criteria is pagetypeid.
Hi Henrik, I'm on version 7. I've creted a detailed forum-post for my problem here -> http://world.episerver.com/Modules/Forum/Pages/Thread.aspx?id=118792&epslanguage=en
Code Behind:using System; using EPiServer; using EPiServer.Core; using EPiServer.Filters; namespace Unctad.Web.Templates { public partial class test : TemplatePage { protected void Page_Load(object sender, EventArgs e) { } public PageDataCollection GetPages() { PropertyCriteriaCollection criterias = new PropertyCriteriaCollection(); PropertyCriteria criteria = new PropertyCriteria(); criteria.Condition = CompareCondition.Equal; criteria.Type = PropertyDataType.PageType; criteria.Value = "7"; criteria.Name = "PageTypeID"; criteria.Required = true; criterias.Add(criteria); PageDataCollection pages = Global.EPDataFactory.FindPagesWithCriteria(Global.EPConfig.StartPage, criterias); return pages; } protected void epiButton_Click(object sender, EventArgs e) { epiPages.DataSource = GetPages(); DataBind(); } } }