ckan / ckanext-scheming

Easy, shareable custom CKAN schemas
Other
83 stars 162 forks source link

Tags-like field with open vocabulary #358

Open davidlesieur opened 1 year ago

davidlesieur commented 1 year ago

I am trying to create a custom field that would behave like the Tags field, i.e., with autocomplete for existing tags, and the ability to add new tags if desired, except that the field would work with a specific vocabulary rather than the default tags vocabulary.

To that end, I have:

With that field definition, autocomplete searches the desired vocabulary, and new tags can be entered.

However, the part I'm not figuring out is how to get new tags to be saved in the proper vocabulary. At this point, new tags are always saved in the default tags vocabulary (with an empty vocabulary id). Ideas?

davidlesieur commented 1 year ago

Does ckanext-scheming actually supports what I'm trying to achieve? Thanks.