bueckl / silverstripe-cookie-warning
Cookie warnings for Silverstripe Projects.
Installs: 195
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 1
Open Issues: 1
Type:silverstripe-module
This package is auto-updated.
Last update: 2025-01-23 08:44:10 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 %>