Dynamic Content – XForm lifesaver in EPiServer CMS R2

October 8, 2008

Yesterday I’ve created a XForm plugin as dynamic content in EPiServer CMS R2, as I thought it would be a nice feature for our current customer to be able to drop forms wherever they want on a page.

I kept getting a object null reference in editmode when my plugin loaded, ie where I configure the plugin specific properties. The null reference was thrown from the CreateChildControls method in the InputXForm class. 

After using Reflector and the EPiServer SDK I found a method called InitializeData that can be called on the PropertyDataCollection containing my plugin properties. Luckily that solved the problem!

I guess some of you out there will run into this problem and that this guidance will spare you some time.


Follow

Get every new post delivered to your Inbox.