Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: Views Bootstrap 5.5.4 — Minor update available for module views_bootstrap (5.5.4). Release: Rightup theme 1.0.3 — Minor update available for theme vartheme_bs5_rightup (1.0.3). Release: CommentOn 1.0.6 — Minor update available for module commenton (1.0.6). Release: ChatGPT Ads 1.0.3 — Minor update available for module chatgpt_ads (1.0.3). Release: Opensolr Search 5.1.3 — Minor update available for module opensolr_search (5.1.3). Release: ServiceM8 Webform Integration 1.2.1 — Minor update available for module servicem8_webform (1.2.1). Release: PostfixAdmin 1.0.0 — Initial release available for module postfix_admin (1.0.0)! Release: ip_analyser 1.0.3 — Minor update available for module ip_analyser (1.0.3). Module Revived: Swagger-PHP OpenAPI 3 documentation generator 1.0.0 — Module swagger_php updated after 10 months of inactivity (1.0.0). Security Coverage: Microsoft Azure AI — Module ai_provider_azure now has official Drupal security advisory coverage.

Display a custom message anywhere on the page if the configured conditions are met. The goal is to provide quick messages, notifications or alerts that are easy to set up and flexible enough to cover most use cases.

The typical scenario for this module is to show a small piece of information to a targeted audience like:

  • user is logged out, invite them to log in or register
  • notify about an on-going event (e.g. sales, live video, site maintenance...)
  • alert users, editors or even administrators about something that requires attention
  • promote a product or highlight a given content type
  • disclaimer about using cookies on the site for compliance with regulations
  • ask if user wants to subscribe to your newsletter or something in a non-invasive manner

Easy: offers predefined options for extra easy configuration (no dependencies!).
Flexible: customize message (allows HTML), configure background color and place it anywhere on the page.
Performant: conditions are checked via AJAX allowing it to work with any kind of cache (drupal cache, memcache or varnish).

Features

At this time the module provides the following conditions out of the box:

  • Display once per session
  • Until the user closes the message
  • Display to certain user roles
  • Display on certain paths
  • Display on certain content types
  • Display on certain multi-sites (D7 only, requires configuration of conditional_message_client)

How to use

On drupal 8/9/10+

  1. install the module as you normally would
  2. create new conditional messages at /admin/content/conditional-message
  3. configure the message, conditions and color/position for the message to blend in your site

On drupal 7

  1. install the module as you normally would
  2. go to the configuration page at admin/config/user-interface/conditional-message
  3. configure the message, conditions and color/position for the message to blend in your site

The message will appear when the conditions are met!

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
1
Tracked since
Jan 2024
Latest release
2 years ago
Releases (12 mo)
0
Maintenance
Dormant

Releases

Version Type Core Release date
2.0.0 Stable Jan 10, 2024