Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

Creating DynamicContent with no public properties fails

Vote:
 

If you create a DynamicContentPlugIn with no public properties it wont render.

Steps to reproduce:

  • New UserControl
  • Inherit UserControlBase
  • Decorate with DynamicContentPlugIn
  • Have some static content in ascx
The plugin appears as expected and you can add it to the page, but the rendering fails.

 

#47374
Jan 26, 2011 22:39
Vote:
 

This is a known issue in the beta, and fixed to the RTM.

Dynamic content will try to create a hash by using the public properties, and if there is no public properties, the "state" will be empty. The HTML parser will than throw an exception becouse the "state" is empty.

Override the "state" property in on your dynamic content for the beta version, and it should work.

#47380
Edited, Jan 27, 2011 8:03
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.