Javascript in TPL file
I'm trying to make my site GDPR compliant. To that end, I need to modify the TPL file for my site such that {module name="MeModule"} only displays if a particular cookie (gdprassentcookie) is set to 'true' to signal acceptance of the T&Cs for my website. If the cookie isn't set then I want to redirect the user to page which will enable them to accept the T&C's before continuing (or better yet display a floating DIV).
Is this possible in the TPL file - if not, how can I achieve this aim.
0
Comments
I never tried that plugin, but it might be a good start: https://open.vanillaforums.com/addon/cookieconsent-plugin