simple_toasts
Replaces the standard Drupal status messages with "Toast" notifications (or alerts). Works for all status/warning and error messages including messages created with Ajax and Drupal.Message() javascript calls.
Features
Simple lightweight module to convert all Drupal messages to alert style floating messages.
This module does not require any additional libraries.
- You can define which active themes should use Simple Toasts
- Message styles can be defined per theme, either using the theme's own message styles or one of the predefined styles provided by this module
- Messages can be positioned per theme (top right, top left, top centre, bottom right, bottom left, bottom centre).
- The duration of the messages (before they disappear) can be defined by message type (status, warning, error).
- Animation styles can be set to slide-in, fade-in, slide-out, fade-out, or the animations can be switched off altogether.
Post-Installation
Navigate to Administration > Configuration > User Interface > Simple Toasts Settings
(/admin/config/user-interface/simple-toasts/settings)
Additional Requirements
No additional libraries are required
Similar projects
The following projects provide similar functionality but also require additional libraries
Bootstrap Toast Messages
https://www.drupal.org/project/bootstrap_toast_messages
Requires Bootstrap V4 or V5 Toast Libraries
Toast Messages
https://www.drupal.org/project/toast_messages
Requires VanillaToasts or Toastr JS Libraries
Toastify
https://www.drupal.org/project/toastify
Requires Toastify JS library
Please Note
There is no upgrade path from version 1.1.x to 2.0.x, if you wish to update the module to 2.0.x please uninstall the previous version before updating.