1. lazyroby
  2. Sherlock Holmes
  3. Commercial Templates
  4. Thursday, 20 January 2022
  5.  Subscribe via email
Hi Ciaran,

on my Emani template my cookieconsent tool cookiebot.com found 11 layerslideshow cookies. Is this necessary or can I change something on my template or module setup? You can find all cookies via "Datenschutz" at the footer menu.

Thank! Robert
References
  1. https://tinyurl.com/4p7jafya
Accepted Answer Pending Moderation
0
Votes
Undo
Hello

Our LayerSlideshow module should not be setting any cookies. It does store some values in localStorage however. If you would like us to disable this storage, may I suggest sending temporary administration access to your Joomla installation to info@joomla51.com and we will create the module override for you. For our reference please paste a link to this post in your email.

Ciaran
  1. more than a month ago
  2. Commercial Templates
  3. # 1
Accepted Answer Pending Moderation
0
Votes
Undo
Thank you! Since I have some other pages and test sites as well: Could you post here or mail to me the solution how to disable the local storage of the module? Robert
  1. more than a month ago
  2. Commercial Templates
  3. # 2
Accepted Answer Pending Moderation
0
Votes
Undo
Hi Robert

Firstly create an override for your LayerSlideshow module. Within that override located the following declaration...

$document->addScriptDeclaration('
document.addEventListener("DOMContentLoaded", function() {
var slider = tns({
container: "#layerslideshow'.$j51_moduleid.'",
mode: "gallery",
items: 1,
slideBy: "page",
controls: true,
autoplay: '.$autoplay.',
autoplayTimeout: '.$autoplaySpeed.',
speed: '.$speed.',
controlsContainer: "#layerslideshow'.$j51_moduleid.'-controls",
autoplayButton: "#layerslideshow'.$j51_moduleid.'-play",
navContainer: "#layerslideshow'.$j51_moduleid.'-nav",
});
});
');


And replace with the following, adding the useLocalStorage key and setting it to false (http://ganlanyuan.github.io/tiny-slider/#options)

$document->addScriptDeclaration('
document.addEventListener("DOMContentLoaded", function() {
var slider = tns({
container: "#layerslideshow'.$j51_moduleid.'",
mode: "gallery",
items: 1,
slideBy: "page",
controls: true,
autoplay: '.$autoplay.',
autoplayTimeout: '.$autoplaySpeed.',
speed: '.$speed.',
controlsContainer: "#layerslideshow'.$j51_moduleid.'-controls",
autoplayButton: "#layerslideshow'.$j51_moduleid.'-play",
navContainer: "#layerslideshow'.$j51_moduleid.'-nav",
useLocalStorage: false
});
});
');


Note that you will have to repeat this process for any module using the tiny slider package (eg testimonials, any module with a carousel effect).

It is also worth noting that Joomla does set its own cookies for user management.

Ciaran
  1. more than a month ago
  2. Commercial Templates
  3. # 3
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!

Join Our Newsletter

* indicates required
We respect your privacy and do not tolerate spam and will never sell, rent, lease or give away your information (name, email, number, etc.) to any third party. Nor will we send you unsolicited email.
Joomla51 - Mullaghmore, Co. Sligo, Ireland
Joomla51.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by
Open Source Matters
the trademark holder in the United States and other countries.

We use cookies on our website. Some of them are essential for the operation of the site, while others help us to improve this site and the user experience (tracking cookies). You can decide for yourself whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.

Ok