HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

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.


Sign In or Register to comment.