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.
PageData _dynPage = new EPiServer.Core.PageData(); _dynPage.Property["PageName"] = new PropertyString("dummy"); _dynPage.Property["PageVisibleInMenu"] = new PropertyBoolean(true); _dynPage.Property["PageLink"] = new PropertyPageReference(EPiServer.Core.PageReference.EmptyReference); _dynPage.Property["PageParentLink"] = new PropertyPageReference((EPiServer.Core.PageReference) _parentPage["PageLink"]); _dynPage.Property["PagePendingPublish"] = new PropertyBoolean(false); _dynPage.Property["PageTypeName"] = new PropertyString("Ordinary web page"); _dynPage.Property["PageTypeID"] = new PropertyPageType(3); _dynPage.Property["PageLinkURL"] = new PropertyString(_pageURL); _dynPages.Add(_dynPage);The entry point is set as parent page for the created pages. Created pages are returned as a PagaDataCollection from the entry points GetChildren;public override PageDataCollection GetChildren(PageReference pageLink) { return memoryPages.GetPages; }What's missing to fix the menu problem? Are there other (and better) approaches to this?