Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/terminal42/contao-image-delete
Allows to "safely" delete files in Contao including preview images.
https://github.com/terminal42/contao-image-delete
Last synced: 23 days ago
JSON representation
Allows to "safely" delete files in Contao including preview images.
- Host: GitHub
- URL: https://github.com/terminal42/contao-image-delete
- Owner: terminal42
- License: mit
- Created: 2021-04-13T09:37:39.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-05-14T06:27:00.000Z (8 months ago)
- Last Synced: 2024-12-04T23:06:24.706Z (about 1 month ago)
- Language: PHP
- Homepage:
- Size: 61.5 KB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# terminal42/contao-image-delete
This Contao extension overrides the default behaviour when deleting an image
in the Contao back end file manager. When deleting an image, users will
be promted with a list of preview images that match the current file name.![](docs/screenshot.png)
This allows to _safely_ delete an image including it's preview, e.g.
if necessary for legal reasons.**Attention:** be aware that the new dialog will **only** appear for image
files. The distinction is pretty simple: if you click the delete button,
a regular file will show the known dialog if you _really want to delete_
the file. For image files, this popup won't appear but the user will be
redirected to the _safe-delete_ form.## Installation
Choose the installation method that matches your workflow!
### Installation via Contao Manager
Search for `terminal42/contao-image-delete` in the Contao Manager and add it to your installation. Finally, update the
packages.### Manual installation
Add a composer dependency for this bundle. Therefore, change in the project root and run the following:
```bash
composer require terminal42/contao-image-delete
```Depending on your environment, the command can differ, i.e. starting with `php composer.phar …` if you do not have
composer installed globally.## License
This bundle is released under the [MIT](LICENSE)