This module provides a configurable alert banner that can be displayed globally on your site. It allows for different alert priorities and can be scheduled to appear or disappear at specific times.
Localgov Drupal Alert banner module, adds a global alert banner block and entity.
Order of alerts
In terms of order, it should be Notable Death -> Major -> Minor -> Announcement and then in date updated order.
Scheduling alert banners
Scheduling the publishing and unpublishing of alert banners is done using the Scheduled Transitions module. Scheduling is not enabled by default. To turn it on just enable the Scheduled Transitions module.
Disable provided CSS.
This module will provide default CSS colours so it can be used out the box. If you wish to theme these yourself, you can disable the provided CSS with the following code in your themes THEMENAME.info.yml file:
libraries-override:
localgov_alert_banner/alert_banner:
css:
component:
css/localgov-alert-banner.css: false
Depends on
Dependencies of the latest stable release
- Condition Field
- block Drupal core
- content_moderation Drupal core
- field Drupal core
- link Drupal core
- node Drupal core
- options Drupal core
- user Drupal core
- views Drupal core
- workflows Drupal core
Required by
1 tracked project depends on this one
- LocalGov Demo 202 sites
Activity
Release Timeline
Releases
| Version | Type | Core | Notes | Release date | |
|---|---|---|---|---|---|
| 1.x-dev | Dev | 10–11 | Dec 9, 2025 | ||
| 1.9.1 | Stable | 10–11 | Update composer namespace for drupal.org | Dec 1, 2025 | |
| 1.9.0 | Stable | 10–11 | Update composer namespace for drupal.org | Dec 1, 2025 | |
| 1.8.6 | Stable | 10–11 | Sync release to GitHub version | Nov 18, 2025 | |
| 1.8.5 | Stable | 10–11 | Sync release to GitHub version | Apr 11, 2025 |