The control of type ... does not implement IField interface.

Posted by Community Admin on 05-Aug-2018 16:13

The control of type ... does not implement IField interface. All fields must implement IField interface.

All Replies

Posted by Community Admin on 12-Feb-2014 00:00
I'm new to SiteFinity and have started trying some things out in my development environment.  I've got two custom fields implemented already, and thought it would be good for the way some of my content is set up to implement two related Dynamic Modules.  So I set up Module A and then I am trying to get the Subitem of Module B to use a Sitefinity Dynamic Items Field Control Selector in the page.

I've used the Add New Item -> Sitefinity Dynamic Items FIeld Control Selector (Twice actually) and I get the Control does not implement IField Interface each time.  I've set up the field following this article: http://www.sitefinity.com/documentation/documentationarticles/creating-field-control-with-selector-for-dynamic-items and I've read both of these forum posts:  http://www.sitefinity.com/developer-network/forums/developing-with-sitefinity-/dynamic-module-and-custom-control and http://www.sitefinity.com/developer-network/forums/thunder/dynamic-module-selector-in-widget-designer.  I was not able to fix it with either of those articles.

If I remove the control, my edit page appears, and if I put it back I get the same error.  Any suggestions on where I can look?

Thanks,
George
Posted by Community Admin on 13-Feb-2014 00:00
So my problem stemmed from using the wizard it would seem.  When it created it with Thunder, it set the dynamicModuleType in the .cs class but in the .ascx it did not set the ItemType for the itemsSelector.  After adjusting that the control shows up and works.
This thread is closed