medienbaecker / kirby-modules

Plugin for modular Kirby websites
MIT License
73 stars 7 forks source link

Subpages message when deleting a page with modules field #25

Closed tan3ot closed 3 years ago

tan3ot commented 3 years ago

First of all: Great plugin! If an editor wants to delete a page he has to confirm by entering the page title even if there are no subpages and no modules. I know it's because of the modules folder but in that case maybe it would be better to change this behaviour for an editor might be asking himself what's wrong...

delete-page-has-subpages

medienbaecker commented 3 years ago

Unfortunately I don't think there's an easy and future-proof way to overwrite this functionality. Generally I try to avoid overwriting core functionality so the plugin doesn't break on Kirby updates.

medienbaecker commented 3 years ago

You can solve this yourself by adding a page model for the parent pages. I added instructions to the README: https://github.com/medienbaecker/kirby-modules#skipping-the-delete-confirmation-dialog