adds a "delete all files" button in a panel page
A custom Kirby field which adds a “Delete all files” button in the sidebar of the panel page.
Put the content of this repo in /site/fields/trashfiles/
.
Please note that in order to put a custom action item in the panel’s sidebar, I had to use a hacky injection method. Due to that, this field may not work on panel versions other than 2.3.2
.
fields:
trash:
type: trashfiles
text: 'Delete all the files of this page' # custom action text
Feel free to fork and pull request.
MIT.