Loading...
 

Plugin Cookie Consent

Use this wiki plugin, introduced in Tiki10, to display content based on whether cookie consent has been granted by the user.

Parameters

Display content based on whether cookie consent has been granted by the user.
Introduced in Tiki 10.
Go to the source code
Preferences required: wikiplugin_cookieconsent, cookie_consent_feature

Parameters Accepted Values Description Default Since
(body of plugin) Wiki syntax containing the content that can be hidden or shown.
element word DOM element to contain everything (div, span, etc). The default is div, set to none for no container. div 10.0
element_class text CSS class for above. 10.0
no_consent_class text CSS class for no consent message. Default: wp-cookie-consent-required wp-cookie-consent-required 11.1
no_consent_message text Message displayed if user has not consented to accepting cookies. Sorry, cookie consent required 10.0

Example

Settings > Control Panel > Log in > Cookie consent for analytics = checked

Copy to clipboard
{COOKIECONSENT(no_consent_message="To see this content you have to accept our cookie consent stuff [?cookie_consent|Click to modify your cookie consent]" no_consent_class="no_analytics")}If the user checked the analytics box, this will be displayed.{COOKIECONSENT}


The following code will open the Cookie Consent again:

Copy to clipboard
[?cookie_consent|Click to modify your cookie consent]

List Slides