Download the PHP package heimrichhannot/contao-alert-reminder-bundle without Composer
On this page you can find all versions of the php package heimrichhannot/contao-alert-reminder-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download heimrichhannot/contao-alert-reminder-bundle
More information about heimrichhannot/contao-alert-reminder-bundle
Files in heimrichhannot/contao-alert-reminder-bundle
Package contao-alert-reminder-bundle
Short Description This utility bundle offers functionality to remind the backend users of existing alerts in the Contao CMS.
License proprietary
Homepage https://github.com/heimrichhannot/contao-alert-reminder-bundle
Informations about the package contao-alert-reminder-bundle
Contao Alert Reminder Bundle
This utility bundle offers functionality to remind the backend users of existing alerts in the Contao CMS.
Features
- looks for existing (configurable) contao backend alerts (added via the hook
getSystemMessages
) and adds a backend message in order to remind the backend user of it
Use case
You might ask what's the use case of this functionality?
The original use case was in order to remind the backend users to add missing alt
attributes to images (accessibility).
Without the functionality, the user might forget about it. Making the alt
mandatory has also not been an option because of contao's simple file upload functionality which doesn't contain the field at all.
Hence the need for reminding the backend user of it.
Installation
- Run
composer require heimrichhannot/contao-alert-reminder-bundle
and update the database.
Technical instructions
Add new contao alerts to the context of this bundle
-
Register a
getSystemMessages
hook as usual in contao: - In order to activate the reminding you have to add your alert type in your project's
app/config/config.yml
:
Add your alerts to the alert queue backend module
This bundle introduces the AlertQueueModule
. It's just a list of messages. You might use it to add the full list of
alerts you want to the user to notice. In the context of reminding the user of missing alt-attributes this is the place
to add shortcuts to the concrete media files.
You can add your messages by registering an event listener for the event AddAlertsToAlertReminderQueueEvent
for example as follows:
All versions of contao-alert-reminder-bundle with dependencies
contao/core-bundle Version ^4.9
heimrichhannot/contao-utils-bundle Version ^2.229
symfony/http-kernel Version ^4.4||^5.4
symfony/config Version ^4.4||^5.4
symfony/dependency-injection Version ^4.4||^5.4
symfony/event-dispatcher Version ^4.4||^5.4
symfony/event-dispatcher-contracts Version ^1||^2||^3
symfony/translation Version ^4.4||^5.4
symfony/translation-contracts Version ^1.1.6||^2||^3