2017 © Pedro Peláez
 

silverstripe-module silverstripe-cookie-warning

Cookie warnings for Silverstripe Projects.

image

bueckl/silverstripe-cookie-warning

Cookie warnings for Silverstripe Projects.

  • Tuesday, March 22, 2016
  • by bueckl
  • Repository
  • 1 Watchers
  • 1 Stars
  • 111 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 1 Versions
  • 6 % Grown

The README.md

cookie-warning

Display Cookie Warnings on Silverstripe projects, (*1)

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

  1. Add to your Page.php:

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

  1. Link css archive:

'cookie-warning/css/CookieWarning.css', (*3)

  1. Add to template:

, (*4)

The Versions

22/03 2016

dev-master

9999999-dev

Cookie warnings for Silverstripe Projects.

  Sources   Download

BSD-3-Clause

by Antonia Lorente

silverstripe cookies