Developer forum

Forum » Development » Custom field provider of type ListBox

Custom field provider of type ListBox

Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi guys,

I need to build a custom field type that would allow the definition of options similar to List Box.

The data will be stored the same way but I need a different control for the admin user interface when assigning values to a product.

My lists are pretty long and I need to allow the user to search for the values before saving them on the product.

Is there any way I can inherit the ListBox and add a new Presentation type for my custom FieldType?

Thank you,

Adrian

 


Replies

 
Steffen Kruse Hansen Dynamicweb Employee
Steffen Kruse Hansen
Reply

Hi Adrian,

In 9.9.3 we have introduced a new 'Display as' type for ProductFields, which is called 'Tag Cloud'. It was built to work well if you had a large list of possible options, but a relatively small list of actually selected options on a product. 
It allows you to search for specific options, and then you can select from that search result.

If you can't use that, I don't think there will be much which will make it simple for you to implement it. It will pretty much be implementing ListBoxes from scratch using a ProductFieldTypeProvider. I think that will be rather complicated, so I wouldn't recommend going down that road. So try to take a look at the 'Tag cloud' and see if it's not something you can use.

Best regards,

Steffen

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi Steffen,

I have noticed the mention of the TagCloud in the release notes but I could not find anything specific about it.

I have been waiting for this type of field for a veeeery long time. I believe I have posted a few feature requests for this.

Finally, my prayers have been heard.

Thank you for that. I will test the functionality and see if I can use it.

Thank you,

Adrian

 

You must be logged in to post in the forum