bueckl / silverstripe-cookie-warning
Cookie warnings for Silverstripe Projects.
Package info
github.com/bueckl/cookie-warning
Type:silverstripe-module
pkg:composer/bueckl/silverstripe-cookie-warning
dev-master
2016-03-22 11:02 UTC
This package is auto-updated.
Last update: 2026-02-23 11:14:42 UTC
README
Display Cookie Warnings on Silverstripe projects
Requirements
- SilverStripe 3.1.*
Installation
Composer
composer require "bueckl/silverstripe-cookie-warning": "*"
Manual
- Download and copy module in SilverStripe root directory: https://github.com/bueckl/cookie-warning/
Usage
- Add to your Page.php:
public static function CookieWarningShown() { $shown = Cookie::get("CookieWarningShown"); if(!$shown) { Cookie::set("CookieWarningShown", true); return false; } return true; }
- Link css archive:
'cookie-warning/css/CookieWarning.css'
- Add to template:
<% include CookieWarning %>