bueckl/silverstripe-cookie-warning

Cookie warnings for Silverstripe Projects.

Installs: 193

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 2

Forks: 1

Open Issues: 1

Type:silverstripe-module

dev-master 2016-03-22 11:02 UTC

This package is auto-updated.

Last update: 2024-04-23 06:52:46 UTC


README

Display Cookie Warnings on Silverstripe projects

Requirements

  • SilverStripe 3.1.*

Installation

Composer

  • composer require "bueckl/silverstripe-cookie-warning": "*"

Manual

Usage

  1. Add to your Page.php:

public static function CookieWarningShown() { $shown = Cookie::get("CookieWarningShown"); if(!$shown) { Cookie::set("CookieWarningShown", true); return false; } return true; }

  1. Link css archive:

'cookie-warning/css/CookieWarning.css'

  1. Add to template:

<% include CookieWarning %>