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:
{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:
just go ahead and activate the cookie_consent_feature
feature in the admin panel
So, this code:
{module module="cookiesettings"}
Produces:
And clicking on the icon triggers this cookie consent alert:
Related Pages
See these pages for information that applies for all modules:
- Module — Overall introduction and overview
- Module Admin — Introduction to the module admin pages for site-wide and individual module settings
- Assigning Modules — How to select a module to configure it
- Module Settings Interface — Interface for configuring individual module settings
- Module Settings Parameters — Explanation of standard parameter settings for modules
- Creating Custom Modules — How to create user modules
- Index of Modules — Links to the documentation of individual modules
- User Modules — How (if the feature is active) users can choose and place their modules
- Mods Type Modules — Links to modules that are installed as components