Kirby Sortable Field / Modules Field

Thanks so much for the Kirby Modules Field, @lukaskleinschmidt. I used it in a lot of recent projects, v2.0.0 is super useful!

I already added a comment to the “recommended setup” issue about the following.
The subpage builder does not create the modules container when changing the template, only when creating a new page. This is only possible with a hook. I wonder if it would make sense to include the following plugin/hook I just wrote in your Modules Field plugin:

Maybe with an additional option that enables/disables this functionality for anyone not using a modules container. Although I think it doesn’t really make sense to use modules in the same folder as the pages, the sorting gets messed up anyway.

While being more user friendly when changing the template, this also makes it possible to delete pages with modules in the panel as long as the subpage deletion issue persists by switching the template. I set the force variable of ->delete() to true for that.

What do you think?