Closed (fixed)
Project:
Orejime
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
12 Mar 2020 at 12:47 UTC
Updated:
14 Apr 2020 at 14:24 UTC
Jump to comment: Most recent
Hello,
It would be nice to hide orejime on the Privacy & cookies policy page.
I accomplished this by adding this in my html--node--ID.html.twig:
<span class="gdprprefs"><i class="fa fa-eye-slash" aria-hidden="true">
<script>
(function ($, Drupal)
{
'use strict';
$(document).ready(function ()
{
$('#orejime').addClass('hidden');
$('.gdprprefs').click(function ()
{
$('#orejime').removeClass('hidden');
});
});
})(jQuery, Drupal);
</script>
Perhaps is it not the right way to do, but it would be nice to have an option to let the visitor read the privacy & cookies policy page without cookies and banner.
Working example: https://www.lodewijkdevadder.net/privacy-and-cookie-policy
Comments
Comment #2
fabsgugu commentedHello,
I think it is indeed a good idea to be able to ignore certain pages.
When I have time, I will add a configuration to choose the pages to ignore.
Comment #3
jbfelix commentedComment #4
fabsgugu commentedComment #6
fabsgugu commentedComment #7
fabsgugu commentedHello,
I added a configuration in the settings which allows to ignore certain pages, with a wild-card system. It's the same system than blocks.
For the moment it is only in dev, but it will come out on alpha 2.
Comment #11
fabsgugu commented