Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Dismissable blocks

No security coverage Under active development 1 sites

This module allows site administrators to make any block dismissible. Users can choose to hide blocks temporarily or permanently by accepting a cookie, which is useful for announcements.

When this module is enabled, you can configure any block to be dismissable. This is very useful for lightweight announcement blocks. Visitors can choose to hide the block just for the page they are viewing or to dismiss it permanently by accepting a cookie.

Features

Adds an X for people to dismiss any block you have configured to be dismissable, and prompts people to accept a cookie if they want the block to stay dismissed.

Post-Installation

Configure any block and choose the Dismissable block type:

  • Block is not dismissable (the default)
  • Block is temporarily dismissable
  • Block stays dismissed if visitor agrees to cookie

Additional Requirements

No requirements other than Drupal core's block module.

None at this time.

Similar projects

See discussion at Provide a way to make a prominent notice that can be dismissed.

Supporting this Module

You can support Agaric’s overall contributions to Drupal and a bit beyond by supporting Drutopia at opencollective.com/drutopia. Thanks!!

Community Documentation

Documentation help welcome!

Ask your assistant about Dismissable blocks

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

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 PHP Release date
1.0.x-dev Dev 8–11 Jan 31, 2024