Search by

nswdpc / silverstripe-notices

nswdpc

Simple notices administration

Package info

github.com/nswdpc/silverstripe-notices

Type:silverstripe-vendormodule

pkg:composer/nswdpc/silverstripe-notices

Statistics

Installs: 4 655

Dependents: 1

Suggesters: 0

Stars: 0

Open Issues: 1

v3.0.0-rc1 2026-11-27 05:22 UTC

README

Simple, unopinionated, module to store notices for use by a project.

Options

A notice contains:

  • A title, with 'show title' option
  • Some content (not HTML)
  • A link
  • A auto dismiss value (seconds)
  • A site-wide option (one allowed)
  • An active option (enabled)

Link migration

This version includes staged migration of links to the core Silverstripe Link model.

  1. Important: Update all calls to $Link/getLink()/Link() in your project to $DerivedLink/getDerivedLink()/DerivedLink()
  2. Once the above change is available on your site, in the "Link migration" admin section any existing links will show with a "Migrate" button
  3. Hit the "Migrate" button
  4. Records will migrate to the core Silverstripe Link model and the element interface will display the core Silverstripe link field once the element is republished.
  5. Template usage on site frontend will pick up the new, core, link.

The next major release of this module will remove dependency of nswdpc/silverstripe-linkfield and legacy linkfield implementation.

Permissions

The module adds permissions for view/add/edit/delete

Template

The module ships a basic meta template, nominally for testing purposes.

Override this template in your project to provide your own notice layout based on the notice options.

Installation

composer require nswdpc/silverstripe-notices

License

BSD-3-Clause

Documentation

Once installed, a "Notices" admin link will be available.

Configuration

None

Maintainers

  • PD Web Team

Bugtracker

We welcome bug reports, pull requests and feature requests on the Github Issue tracker for this project.

Please review the code of conduct prior to opening a new issue.

Security

If you have found a security issue with this module, please email digital[@]dpc.nsw.gov.au in the first instance, detailing your findings.

Development and contribution

If you would like to make contributions to the module please ensure you raise a pull request and discuss with the module maintainers.

Please review the code of conduct prior to completing a pull request.