Configurable emergency alert blocks
The Emergency Alerts module provides emergency alerts. These are the important announcements you might see at the top of academic sites., (*1)
For a full description of the module, visit the project page: https://www.drupal.org/project/emergency_alerts, (*2)
To submit bug reports and feature suggestions, or to track changes: https://www.drupal.org/project/issues/emergency_alerts, (*3)
This module requires no modules outside of Drupal core., (*4)
1. Navigate to Administration > Extend and enable the module. 2. Navigate to admin/config/emergency_alerts to configure. 3. Navigate to admin/structure/block to place the block.
(optional) Add region emergency_alert
to your theme and in templates.
For example (in theme.info.yml),, (*5)
regions: content: Content sidebar: Sidebar footer: Footer Nav emergency_alert: 'Emergency alert'
Place the Emergency Alert
block created by this module
in the region you added above or in any other region., (*6)
Copy template html--emergency-alert.html.twig
(for full-page alert) to your
theme and edit (but keep the page.emergency_alert
region), (*7)
Copy template emergency-alert.html.twig
to your theme and edit as needed., (*8)
Add styling for the alert region div with classes:, (*9)
.emergency-alert.announcement
.emergency-alert.warning
.emergency-alert.danger
Supporting organization: * New City - https://www.drupal.org/newcity, (*10)