I'm looking for a backoffice editor that would allow me to have a list of countries and store a numeric value against them. I was hoping that I could use the Contentment data list but I can only product a list of countries with a checkbox, not a numeric field.
Does anyone know if I'm not using Contentment right, or if there's something else I can use before I start going down the custom editor route? Thanks ✌️
j
Jemayn
08/14/2024, 2:49 PM
Could use a blocklist that allows a block which has a country contentment data list as well as a number field.
Not the best editor experience, but would allow you to skip the custom editor way
r
rockerby
08/14/2024, 2:53 PM
I considered that; we also have to programmatically add these in which I thought could raise a lot of concerns with the BLE
l
leekelleher
08/15/2024, 11:43 AM
Contentment has a property-editor called Textbox List, which takes a data-source (configured the same as Data List), and puts a textbox next to each item... useful? 🤷♂️
https://github.com/leekelleher/umbraco-contentment/blob/develop/docs/editors/textbox-list.md#how-to-use-the-editor
The UI is fine for several items, but if you used something like .NET Countries as the data-source, then that's a few hundred, which would be overwhelming. 😬
Otherwise it's Block List (or similar) ... or roll your own custom property-editor, tailored to your needs.
Thanks for that Lee, appreciate the detail!
I checked out Textbox list and that looked good, but after I saw how big the list ended up I wanted some way to filter, and then we needed a checkbox next to each (so it got even more complicated). I ended up rolling my own PE in the end as it just felt far too bespoke!