Cookie Consent Widget
Package Specification Summary for Package: cookie-consent
Summary: | Cookie Consent Widget based on the free Cookie Consent Library |
Description: | |
Maturity: | Immature |
This package depends on: | acs-templating acs-tcl |
Packages that depend on cookie-consent: | None |
Package parameters: | None |
Bug Tracker Summary for Package: cookie-consent
There is no package with the name "cookie-consent" known to bug-tracker.
Code Metrics Summary for Package: cookie-consent
# Tcl Procs | 9 |
# Tcl Lines | 517 |
# Tcl Blank Lines | 64 |
# Tcl Comment Lines | 93 |
# Automated Tests | 1 |
# Stored Procedures | PG: 0 ORA: 0 |
# SQL Lines | PG: 0 (blank 1 comments 0) ORA: 0 (blank 1 comments 0) |
# ADP pages | 1 |
# ADP lines | 7 |
# Include pages (cookie-consent/lib/) | 0 |
# Documentation pages | 0 |
# Documentation lines | 0 |
Browse Source | API-browser |
Github Repository: | https://github.com/openacs/cookie-consent/tree/oacs-5-10 |
Integration of the Cookie Consent Library into OpenACS
The Cookie Consent Library is and Cookie Consent to be free and open sourced library for for alerting users about the use of cookies on a website. It is designed to help you comply with the hideous EU Cookie Law and not make you want to kill yourself in the process. So we made it fast, free, and relatively painless.
Details:
https://cookieconsent.insites.com/
https://github.com/insites/cookieconsent/
This package integrates the Consent Plugin with OpenACS, in particular with OpenACS subsites.
So far, this package supports on the "inform" type of cookie consent policies. When the "opt-out" or "opt-in" variants of the policies should really include all types of cookies (even session-cookies) the user would not be able to login to the site. However, most countries stick for now to the "inform" policy, and the detailed regulation are still in flux.
Features:
- Configure the appearance of the cookie consent widget via the following parameter (on acs-subsite):
CookieConsentEnabled 0|1 CookieConsentPosition bottom|top|pushdown|left|right CookieConsentLayout block|classic|edgeless|wire CookieConsentPalette oacs|honeybee|mono|neon|corporate CookieConsentLearnMoreLink https://cookiesandyou.com/ CookieConsentDefaultPalette - Usage from CDN (out-of-the box) or from a local copy (download your local copy via "Site-Wide Admin" link in /acs-admin/)
- Support for host-node-mapped subsites
- Internationalized with OpenACS message keys
Installation
- Install this package via the OpenACS Package Manager
- Add this package to the templating system
- OpenACS 5.10.0d2 or newer:
The cookie consent widgets uses the "subsite::page_plugin" callback, so no changes on templates are necessary. Make sure, you update also acs-bootstrap-installer to 5.10.0d2 or newer to obtain the updated blank-master
- OpenACS 5.9.1:
Add to the top of your blank-master.tcl the following snippet:
================================================================
if {[info commands ::cookieconsent::initialize_widget] ne ""} {
::cookieconsent::initialize_widget
}
================================================================
- OpenACS 5.10.0d2 or newer:
- Configure the CookieConsent* parameters of the subsite (e.g. of the main subsite) in the section "Cookie Consent"
Prerequirements:
The implementation uses nx from the next-scripting framework.
https://next-scripting.org/xowiki/
which is automatically installed for XOTcl2 via naviserver-openacs
It works best with OpenACS 5.10.0d2 or newer, but works as well with 5.9.1 (see INSTALLATION section above) or earlier versions supporting Content Security Policy (CSP), and probably with earlier versions as well, when CSP code is commented out.