biffbangpow/silverstripe-cookie-notice

This package is not installable via Composer 1.x, please make sure you upgrade to Composer 2+. Read more about our Composer 1.x deprecation policy.

Adds a cookie notice when a user first visits your SilverStripe site.

dev-master 2017-08-25 15:09 UTC

This package is not auto-updated.

Last update: 2021-10-23 01:49:05 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

  1. Composer install or unpack the module in the root of your project
  2. Add <% include CookieNotice %> to the template you wish to show the cookie notice on
  3. You can add extra classes to the button, for example for Bootstrap <% include CookieNotice CookieNoticeButtonClasses='btn btn-sm btn-primary' %>
  4. Once the module is installed do a dev/build to generate the schema and populate it with the default values.
  5. Head to the SiteConfig section to add custom values to your cookie notice.