Restrict element deletions
This plugin can prevent deletion of elements (entries, assets, categories, products and users) if they are referenced in other elements.
It can also show the related element for any element, either through a new action when selecting an element or in the sidebar.
The idea is taken from the plugin Restrict Asset Delete, improved to apply to all elements, and made Craft 4 ready.
You will need to define policies for each section/volume/category groups and users in the settings, there are 4 policies :
- Do not restrict
- Restrict all : Prevent deletions when the element is referenced in another element, in drafts and revisions also
- Restrict all but revisions : Same as above but not in revisions
- Restrict all but drafts : Same as above but not in drafts
- Restrict all but drafts and revisions : Same as above but not in drafts or revisions
Installation Instructions
To install this plugin, copy the command above to your terminal.
Reviews
This plugin doesn't have any reviews.
Active Installs
419
License
MIT
Last release
May 15, 2024
Activity (30 days)
0
Closed Issues
0
Open Issues
0
Merged PRs
0
Open PRs