Warning: Undefined variable $filepath in /home/tiki-doc/public_html/lib/wiki-plugins/wikiplugin_tikidocfromcode.php on line 146
Display content based on whether cookie consent has been granted by the user | Documentation for Tiki Wiki CMS Groupware
Loading...
 
Skip to main content
Display content based on whether cookie consent has been granted by the user

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

Tiki Doc From Code error: cookieconsent not found

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]
Show PHP error messages