Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Bootstrap Site Alert

Security covered Maintenance fixes only 1,617 sites

Part of the Bootstrap ecosystem · 46 projects

This module displays a site-wide alert message at the top of every page, independent of theme setup. It requires a Bootstrap-based theme or the inclusion of Bootstrap CSS and JavaScript.

Puts a site wide bootstrap themed alert message on the top of every page.

I made this module because some of the other existing modules came close in functionality. However, we didn't want to rely on blocks or panels or anything with a theme layer. We needed something fast and easy with a WYSIWYG enabled message and so this module was born. We use hook_page_alter (D7) / hook_page_top (D8) to display the message and so it is independent of any setup you may have on the site.

You will need a Bootstrap based theme to use this, For Bootstrap 4, I suggest Bootstrap Barrio. For Bootstrap 3, I suggest Kalatheme or Bootstrap.

People without Bootstrap
You can technically still use this, it just depends on the front end library Bootstrap for CSS / JS.

I did however add the CSS / JS in the Documentation for this module so EVERYONE can use it!

3.0.x replaces 8.x-1.x.

There is a clear distinction between 8.x-1.x and 8.x-2.x.

Upgrade from 8.x-1.x to 3.0.x

The 3.0.x is the recommended stable release to use for Drupal 10+. For those using 8.x-1.x you may safely upgrade to the semantic version release 3.0.x if you're on Drupal 10+.

Difference between 3.0.x & 8.x-2.x

  • The 3.0.x version is a config form that uses the state API based to render the alerts.
  • The 2.0 version is content based and uses a view to render the alerts.

Why the differences?

Basically the 2.0 version arose from a client request. They wanted content workflow and scheduling around the site alerts. Instead of spending a ton of time trying to get the existing module to do this, I made the content based version. Both versions are basically the same thing functionally.

  • If you want a simple non content based solution, then choose the 3.0.x version.
  • If you need a more robust version that uses node entities, then choose the 2.0 version.

Check Out The Documentation

Similar Modules

Site Alert - https://www.drupal.org/project/site_alert
This module was very close to what we wanted originally. We didn't need a date, something in a panel or block, and we needed a configurable WYSIWYG. Inspiration was drawn from this module. Good module though.

Sitewide Alert Message - https://www.drupal.org/project/sitewide_msg
Close, but didn't really hit the mark on what we needed like site_alert.

Alerts - https://www.drupal.org/project/alerts
Works by attaching an alert to individual nodes. No way for a site administrator to create a site wide alert.

Drupal 10–11

Ask your assistant about Bootstrap Site Alert

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
11
Tracked since
Nov 2023
Latest release
9 months ago
Releases (12 mo)
1 ▼ from 4
Maintenance
Slowing

Release Timeline

Releases

Version Type Core PHP Release date
8.x-1.11 Stable 8–10 Nov 14, 2023