biffbangpow / silverstripe-cookie-notice
Adds a cookie notice when a user first visits your SilverStripe site.
Package info
github.com/BiffBangPow/silverstripe-cookie-notice
Type:silverstripe-module
pkg:composer/biffbangpow/silverstripe-cookie-notice
dev-master
2017-08-25 15:09 UTC
Requires
This package is auto-updated.
Last update: 2026-03-17 00:07:50 UTC
README
Adds a cookie notice when a user first visits your SilverStripe site.
Requirements
SilverStripe 3.1 or higher
Installation
composer require BiffBangPow/silverstripe-cookie-notice
Usage
- Composer install or unpack the module in the root of your project
- Add
<% include CookieNotice %>to the template you wish to show the cookie notice on - You can add extra classes to the button, for example for Bootstrap
<% include CookieNotice CookieNoticeButtonClasses='btn btn-sm btn-primary' %> - Once the module is installed do a
dev/buildto generate the schema and populate it with the default values. - Head to the SiteConfig section to add custom values to your cookie notice.