Dismissable blocks
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.
Recommended modules/libraries
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!
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
Releases
| Version | Type | Core | Release date | |
|---|---|---|---|---|
| 1.0.x-dev | Dev | Jan 31, 2024 |