biffbangpow / silverstripe-cookie-notice
Adds a cookie notice when a user first visits your SilverStripe site.
Installs: 5
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Open Issues: 0
Type:silverstripe-module
Requires
This package is auto-updated.
Last update: 2024-12-16 21:04:26 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/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.