Notification Message
492 sites
No security coverage
This module allows site administrators to create and broadcast notification messages across a Drupal site. You can configure messages with specific display times, conditions like user roles or paths, and make them dismissible by users.
What This Module Does
The Notification Message module allows site administrators to create and broadcast notification messages that appear throughout a Drupal site. Notification messages can be broken into different types to support multiple use cases. Messages can be configured with:
- Time-based publishing – Set start and end dates to control when messages appear
- Conditional display – Show messages based on user roles, page paths, content types, or any custom Drupal condition
- Entity awareness – Notification messages are aware of entities exposed on the route, which integrate with Drupal's Condition API
- Multiple message types – Create different notification categories for different use cases
- Dismissible messages – Let users close notifications, shown only once per browser session via cookie-based storage
Use Cases
- Display site-wide outage or maintenance announcements at a specific date and time
- Show promotional banners during specific time periods
- Target notifications to a subset of users based on role
- Display context-aware messages on specific content types
- Create dismissible alerts that users can close
How It Works
- Create message types – Define different notification categories with configurable conditions and dismiss settings
- Create messages – Add notification content with publish dates and optional display conditions
- Place the block – Add the "Notification Messages" block to any region
- Conditions evaluate – Messages automatically show/hide based on configured conditions and dates
Features
- Create notification message types with configurable view modes
- Use conditions to show/hide notification messages via Drupal's Condition API
- Create custom conditions to support additional use cases
- Easily attach custom fields to notification message types using Field API
- Publish/unpublish notification messages using start and end dates
- Translatable for multilingual sites
- Cron-based cache invalidation for accurate time-based publishing
- Accessible dismiss functionality with ARIA announcements
Similar Projects
- Site Alert – Provides site-wide alerts. Notification Message differs by supporting multiple message types, condition-based targeting, and integration with Drupal's Condition API for more flexible display rules.