Git Product home page Git Product logo

silverstripe-cookie-policy-notification's Introduction

SilverStripe Cookie Policy Notification Module

Latest Stable Version Latest Unstable Version Total Downloads License

Overview

Simple & configurable SilverStripe plugin to notify users about cookie policies.*

Maintainer Contacts

  • Milan Jelicanin [at] Fractas.com

Requirements

  • SilverStripe CMS 4
  • SilverStripe Framework 4

Version info

The master branch of this module is currently aiming for SilverStripe 4.x compatibility

Installation Instructions

  • Install via Composer
composer require "fractas/cookiepolicy" "^2.0"
  • Visit yoursite.com/dev/build?flush=1 to rebuild the database.
  • Visit yoursite.com/admin/settings/ and on Cookie Policy tab add a Content and Button text. Cookie Policy Admin

Usage with Fluent

  • Install Fluent on your project
  • Add to your YML configuration file an FluentExtension and these DB fields:
SilverStripe\SiteConfig\SiteConfig:
  extensions:
    - 'TractorCow\Fluent\Extension\FluentExtension'
  translate:
    - 'CookiePolicyButtonTitle'
    - 'CookiePolicyDescription'
  • Visit yoursite.com/dev/build?flush=1 to rebuild the database.

Known Issues

GitHub Issue Tracker

Thanks

Thanks to carhartl for the jQuery Cookie plugin.

Thanks to prolificjones82 for the jQuery UK Cookie Policy Notice: A simple plugin to notify users you adhere to the UK's cookie policies.

Licence

See licence

silverstripe-cookie-policy-notification's People

Contributors

anselmdk avatar firesphere avatar hdpero avatar jelicanin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

silverstripe-cookie-policy-notification's Issues

Problem with js

I installed the module with composer and put my settings.
But when I call my homepage, I do not see anything.
Inspecting with chrome gives me the emssage:

Uncaught TypeError: $(...).cookieNotify is not a function

When I look to the sources tab, I see:
<script type="text/javascript" src="/framework/thirdparty/jquery/jquery.js?m=1428661025"></script><script type="text/javascript" src="/cookie-policy-notification/javascript/jquery.cookie.policy.js?m=1429084899"></script><script type="text/javascript">//<![CDATA[
$(document).ready(function() {
$('body').cookieNotify({btnText: 'Cookie Warnung', text: '

Bla bla 

Bla Bla 2

', position: 'top'});
});

All seems to be OK, I do not see any erroneous code. Can someone help me?

Not showing anything on homepage

I installed the plugin as in the instructions. I can see the plugin window correctly in Settings, but when I call my homepage, I do not see anything. Can anyone help to fix that?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.