Loading...
 
Skip to main content

Module Cookie Consent Settings


This module allows users to change their cookie consent preferences.

Usage

This module requires cookie_consent_feature. This is how to use the Cookie Consent Settings module in a wiki page:

Copy to clipboard
{module module="cookiesettings"}

Parameters

Allows users to change their cookie consent preferences.

Go to the source code
Preferences required: cookie_consent_feature

Parameters Accepted Values Description Default Since
class word Class of the container div. Default "p-2 bg-dark"
icon word Icon to show on the link. Default "cog"
iconsize word Size of icon. Default "2"
mode word Display mode, text, icon or both. Default "icon"
corner word Position on the page, topleft, topright, bottomleft, bottomright or none. Default "bottomleft"
text text Text to show on the link and tooltip. Default "Cookie Consent Settings"
textclass word Class of the text or icon. Default "text-light"


Example

In the example below we pass in a wiki page the module cookiesettings through the plugin module.
If you encounter this alert:

Image

just go ahead and activate the cookie_consent_feature feature in the admin panel

So, this code:

Copy to clipboard
{module module="cookiesettings"}


Produces:


And clicking on the icon triggers this cookie consent alert:

Image

See these pages for information that applies for all modules: