Replies: 2 comments 1 reply
-
Thanks for the input. I see the necessity for such an annoyance. I will implement the localStorage / sessionStorage proxy and a section in the docs in the next 7.x release. Nevertheless utilization of the proxy will come in 8.x as it requires some renovation on the script side. What can you expect from the final solution? The theme will do the cookie handling. If it discovers missing consent or the cookie has expired (after 31 days), a hook will be called. In the default implementation, the hook always returns You will have to override the hook, give your user notice and return It will only be possible to turn off all storage facilities of the theme all together. Third-party-scripts (every library stored in subdirectories of Does this sound reasonable? |
Beta Was this translation helpful? Give feedback.
-
Thanks a lot! The sketched approach sounds very reasonable to me! Making the theme use a proxy object to use storage looks like the clean way to implement such functionality.
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Art. 5(3) of cited Directive provisions, that data stored on an end user's "terminal equipment" has to be either "solely for the purpose of carrying out the transmission", "strictly necessary … to provide the service", or he user has to give his consent ("with clear and comprehensive information … about the purpose"). [Any one is free to judge the sanity of cited directive.]
The fabulous Relean-Hugo-Theme stores theme variants (style sheet variants) and visited sub pages in
localStorage
orsessionStorage
, respectively; the latter only, ifparams.showVisitedLinks
is settrue
.Could you apply a hook (adding a Javascript hook re-defining
Storage.setItem
to NOP incustom-header.html
is to late; you could succeed doing that inmeta.html
, though).Aside from providing means to disable "storing data on an end user's terminal equipment", providing a i18n-able consent dialogue or a hook allowing the implementation of custom consent dialogues would be very much appreciated! :)
Beta Was this translation helpful? Give feedback.
All reactions