Code Monkey home page Code Monkey logo

supi's Introduction

Supseven User Privacy Interface

Installation

  1. Add the package to the composer manifest: composer req supseven/supi.
  2. Include the TypoScript file EXT:supi/Configuration/TypoScript/setup.typoscript
  3. Include into the template with Typoscript cObject lib.elements.supi

Integration

Make every javascript a template by changing the type property to application/supi and add a data attribute named data-supi-cookies containing a list of the cookies it uses.

<-- eg: for Google Analytics -->
<script type="application/supi" data-supi-cookies="_ga">[google analytics snippet]</script>

The cookies in the data attribute must also be configured in TypoScript by adding them to the names property in the corect section.

Customization

Change/override the properties in plugin.tx_supi to customize. The sources for the Javascript and the CSS are Typescript and SCSS, which can be included in custom build piplines.

You can adjust most of the settings via scss variables or css variables. this will fit most of the usecases.

Cookie Livetime

Set different Cookie Lifetimes for Accessed or Denied Cookies. Defaults are:

  • 7 Days for dismissed Cookies
  • 30 Days for allowed Cookies

Change this Settings in Your TypoScript Config for Your needs.

Hide Overlay on Cookie Button Plugin

Set the Option settings.hideOverlayOnButtonCe = 1 to prevent showing the Overlay on a Page where the Plugin is inserted.

This may help Users to first read the data protection Page and decide then whether to accept or decline the Cookies.

License

GPL 3.0 or later

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.