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
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?