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
e
is the event), I notice thate.Page
is not set, so I load using:PageData page = Global.EPDataFactory.GetPage(e.PageLink);
I then attempt to read the property value, it is calledpropertyName
, using:PropertyData data = page.Property[propertyName];
This gives me back a validPropertyDataCollection
instance. Howeverdata.Value
returns null. The page I am copying does not have a null value, and the default value for the page property is not null. Can anyone tell me how I can reliably get the value of this property from the page being copied please? At the moment the best I can do is extract the default value from the page type by using the following code:PageData parentPage = EPiServer.Global.EPDataFactory.GetDefaultPageData(page.PageLink, page.PageTypeID);
I'm using EPiServer 4.60.0.165 running on XP.