I've been working on a new custom data type based on Tim's blog. I've got it 95% complete, but am running into a problem saving. Tim's example only had a text field, in my case it's a series of checkboxes; essentially an array of data. I would rather not store this in one field but multiple fields with a relationship. His "OnSave" example looks like this:
Currently, all of the datatypes solve this by creating either a comma-separated list of data or creating an XML structure within the field. It is unfortunately not possible to store the data of a single datatype over multiple columns in the database.
If you have a look at the cmsDataTypePreValue table it has an alias field and it looks like the new google maps package uses it. So it's probably worth having a look into that.
Umbraco Custom Data Type with Multiple Values
I've been working on a new custom data type based on Tim's blog. I've got it 95% complete, but am running into a problem saving. Tim's example only had a text field, in my case it's a series of checkboxes; essentially an array of data. I would rather not store this in one field but multiple fields with a relationship. His "OnSave" example looks like this:
Any ideas how I can convert this to take an array of data and save across multiple fields with a relationship?
Currently, all of the datatypes solve this by creating either a comma-separated list of data or creating an XML structure within the field. It is unfortunately not possible to store the data of a single datatype over multiple columns in the database.
Not the answer I was hoping for but it is what it is. Any chance this can be improved upon in future versions of Umbraco? Thanks!
If you have a look at the cmsDataTypePreValue table it has an alias field and it looks like the new google maps package uses it. So it's probably worth having a look into that.
Ben
is working on a reply...