I would check out the Data List Editor in Contentment ( https://github.com/leekelleher/umbraco-contentment ). It allows for lots of different data sources, and various display options as well. There is a dropdown display option, and there is a Enum data source that I've used often. When you use the DataListItem attribute on the enum values, you can set the name/value values that will be used with the dropdown.
It isn't my package, but Lee is definitely still involved with Umbraco and so there is a good chance. If you wanted to give it a shot to upgrade it and issue a pull request, I'm sure he'd appreciate the help.
hi guys, how do u get the value of the dropdown?
I checked the publishedmodel for JSON data source and it's still a string, in fact, the title of dropdown not its value.
Hi, any news here? I have a dropdown and all what I get is a value/value pair, so I cannot pass an id for very item in the dropdown. How can I do that? Thanks,
Drop down with key + value
I'm looking for Data Type which can hold Title (label, etc) and Value.
Is there something our there?
Cheers
I would check out the Data List Editor in Contentment ( https://github.com/leekelleher/umbraco-contentment ). It allows for lots of different data sources, and various display options as well. There is a dropdown display option, and there is a Enum data source that I've used often. When you use the DataListItem attribute on the enum values, you can set the name/value values that will be used with the dropdown.
that looks really good, do you plan to upgrade this to Umbraco 9?
It isn't my package, but Lee is definitely still involved with Umbraco and so there is a good chance. If you wanted to give it a shot to upgrade it and issue a pull request, I'm sure he'd appreciate the help.
hi guys, how do u get the value of the dropdown? I checked the publishedmodel for JSON data source and it's still a string, in fact, the title of dropdown not its value.
Hi, any news here? I have a dropdown and all what I get is a value/value pair, so I cannot pass an id for very item in the dropdown. How can I do that? Thanks,
is working on a reply...