a while ago I made the list plugin (here a github link) that allows you to create simple list entries and to sort them via drag & drop:
I would like to prevent this field from resetting to its stored state after the page is reloaded. This includes added or removed list entries and their sorting. All is lost when the page reloads. The big problem is that such a reload is also triggered after uploading a new file to the page or sorting a structure field on the page, i.e. all my edits on my list field could be lost only because I edited another field before hitting the save button.
I took a look at how the structure field handles this but, to be honest, couldn’t get my head around the mechanisms behind it. I just found my self lost the deep, deep core of the panel…
Can you guys give me some insights on how the temporary changes are stored parallel to the data from the .txt file?
Thanks H-i! This works. @bastianallgeier it would be great if the docs would cover this. It is really a bummer if the content of custom fields is lost before saving.
oh by the way, is there any chance your builder plugin will accept nesting in the near future ?
I am still hoping that bastian comes up with a solution to have nested structures so that i can adapt his solution for the builder field. For the moment, I am not working on an own solution.