Skip to main content

Add-on for Volto to manage cookieconsent banners

Project description

https://travis-ci.com/collective/collective.volto.cookieconsent.svg?branch=master

Add-on for manage Cookie Consent banner on Volto

Features

  • Control panel to plone registry to manage cookie consent settings.

  • Restapi view that exposes these settings for Volto

Volto endpoint

Anonymous users can’t access registry resources by default with plone.restapi (there is a special permission).

To avoid enabling registry access to everyone, this package exposes a dedicated restapi route with cookie consent config: @cookieconsent-infos:

> curl -i http://localhost:8080/Plone/@cookieconsent-infos -H 'Accept: application/json' --user admin:admin

And the result is something like this:

{
    "accept_on_scroll": true,
    "cookie_consent_configuration": {'some':'data'}
}

Control panel

You can edit settings directly from Volto because the control has been registered on Plone and available with plone.restapi.

The ideal content of cookie_consent_configuration would be:

{
    "en": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque sapien velit, aliquet eget commodo nec, auctor a sapien. Nam eu neque vulputate diam rhoncus faucibus. Curabitur quis varius libero. Lorem.",
    "it": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque sapien velit, aliquet eget commodo nec, auctor a sapien. Nam eu neque vulputate diam rhoncus faucibus. Curabitur quis varius libero. Lorem."
}

Volto integration

To use this product in Volto, your Volto project needs to include a new plugin: https://github.com/collective/volto-cookie-banner

Translations

This product has been translated into

  • Italian

Installation

Install collective.volto.cookieconsent by adding it to your buildout:

[buildout]

...

eggs =
    collective.volto.cookieconsent

and then running bin/buildout

Contribute

License

The project is licensed under the GPLv2.

Contributors

Changelog

1.1.1 (2021-07-19)

  • Added italian translations [giulia]

1.1.0 (2020-12-28)

  • Manage internal links with uids to keep consistency. [cekk]

1.0.0 (2020-04-08)

  • Initial release. [cekk]

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

collective.volto.cookieconsent-1.1.1.tar.gz (24.9 kB view details)

Uploaded Source

File details

Details for the file collective.volto.cookieconsent-1.1.1.tar.gz.

File metadata

  • Download URL: collective.volto.cookieconsent-1.1.1.tar.gz
  • Upload date:
  • Size: 24.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.6

File hashes

Hashes for collective.volto.cookieconsent-1.1.1.tar.gz
Algorithm Hash digest
SHA256 7ea92ee401a4898a0962d705ea74d85ee5d727b344dae497fda11d53b336617d
MD5 6cf847daaa1b679eac239c623ccce05f
BLAKE2b-256 06c0934f50f4945119cd1d219efa5ea52c24a6be305e29fa59bc8b69ce1fedcb

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page