govCMS / GovCMS

Current Drupal release of the main GovCMS distribution, with releases mirrored at https://www.drupal.org/project/govcms
GNU General Public License v2.0
147 stars 41 forks source link

Add sitewide alert module to GovCMS #853

Open larowlan opened 1 year ago

larowlan commented 1 year ago

** What value does this module/package add to GovCMS? It is a common requirement for sites to add sitewide alerts. E.g 'We are closed for Australia day' or similar

Is the module Drupal 10 compatible? Yep Please provide a brief outline of what this module does. Provides a content entity and a JS library to display alerts across the site in various formats.

** Who does this module benefit: [x] end users [x] content editors [x] site builders [x] themers [x] developers

** How could you provide/replicate the functionality of this module using alternative methods, eg in your theme? You would have to create a node-type for the alerts and use something like an entity query or json api to find active alerts and then display them.

** If this module styles or alters HTML or JavaScript output, can the functionality be provided via the theme? What alternatives have you considered.

** What is the maintenance and support status of the module. Describe the issue queue activity. Fairly decent, we've provided feature requests and they've responded proactively

** What permissions are needed to utilise the module (and are any new permissions provided by the module)? It provides permissions to manage and permissions to display

** Does the module modify the database structure and/or store additional metadata on nodes or other entities? If so, why? What are the risks for future updates? There's a custom entity type. It is self contained and would provide an update path for any changes.

** Is the module designed to capture anonymous user data? no

** Is the output of the module typically fully cacheable? Would the inclusion of this module potentially render pages uncacheable. yes, we've worked to maximise cacheability with other clients.

** What is your assessment of the quality of this module, the contribution history of the module's maintainers, and the uptake of the module within the Drupal community? I'd recommend it, and I'm fairly picky

** Additional information

thisisalistairsaccount commented 1 year ago

Module can be found at https://www.drupal.org/project/sitewide_alert

I know we've got some site owners using:

I'm not sure if there's a broad need for this one, but for those in the community if you are interested, please let us know with a comment or a react to @larowlan 's post

larowlan commented 1 year ago

Thanks, just to clarify, the main benefit of this module vs other approaches is the cacheability being a JS solution You can cache pages for a long time even if there are periodic notifications with expiry dates

dibs commented 2 months ago

+1