Adds a cookie notice when a user first visits your SilverStripe site.
SilverStripe 3.1 or higher
composer require BiffBangPow/silverstripe-cookie-notice
- 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/build
to generate the schema and populate it with the default values. - Head to the SiteConfig section to add custom values to your cookie notice.