I want to use the Blog util in version 4.62 but the code below throws an exception when new PostedEntry(xf.Form.CreateFormData()); is executed. When I inspect xf.Form the Document property is set to null. How to fix this?
EPiServer.Core.PropertyXForm xf = (EPiServer.Core.PropertyXForm)CurrentPage.Property[BlogUtil.BlogPostFormPropertyName]; BlogPostEntry = new PostedEntry(xf.Form.CreateFormData());
Hi!
I want to use the Blog util in version 4.62 but the code below throws an exception when new PostedEntry(xf.Form.CreateFormData()); is executed. When I inspect xf.Form the Document property is set to null. How to fix this?
EPiServer.Core.PropertyXForm xf = (EPiServer.Core.PropertyXForm)CurrentPage.Property[BlogUtil.BlogPostFormPropertyName];
BlogPostEntry = new PostedEntry(xf.Form.CreateFormData());
/Martin