I wonder if removing an item by deleting its content is intuitive enough for most people, or if a dedicated icon would be better understood? In this case I’d move the drag icon to the left and put the remove icon to the right. That’s my only little gripe
I’m glad to see that you like it. @bastianallgeier If you would like to integrate it to the core, just go ahead
@Malvese yeah I thought of this as well. On the other hand, two icons both left and right would take a lot of the light weight character of this field. Hm, hard to decide for the best way to go here.
I agree. This may solve some of the issues with nested structure fields. A list field within a structure field would solve a usability issue I’m dealing with right now for Shopkit
@jenstornell: yes, of course you can sort, edit and delete a normal list within an textarea field as well. I think the idea here is to have a separate list field which you can sort by dragging and dropping, so as to make handling easier. I don’t know how often you would need such an isolated list, however. Usually, I would put such a list within surrounding text.
As for more complex lists with headlines and paragraphs, which tend to get broken easily using markdown, I would opt for a standard structure field, anyway.
I originally created this plugin in connection with a survey tool in which the user could manage different answer options per question. To delete, rearrange and create these answer options it was more intuitive to have them separated in single input fields per option rather then one single text area where the user had to use a markdown syntax to get the required list. I could have done this with a structure field instead but this felt a bit clumsy as I just needed a single input field per answer.
This field lets you handle lists more from a data perspective rather then from a content’s point of view. I would use it to manage the ingredients for recipes on a cooking site but would stick with a markdown list when I write the step by step instructions for cooking the meal.
I totally agree (despite the image field, which could arguably have a place as an core field [but that’s another topic] ). But as I said, the use case I have in mind for the list field isn’t a mere representation of the HTML list equivalent.
There is no such thing as a delete button yet. @Malvese suggested a solution that I would like to adopt as soon as I find the time. By now, you can delete items by simply using the backspace key to remove the content of the specific line. Empty lines are automatically removed.