Random function not working?
Permalink Browser Info Environment
Even though I select the order as random, it seems like it always start with the same iamge/order anyway.
Others who have tried this and have a suggestion?
Others who have tried this and have a suggestion?
Type: | Discussion |
---|---|
Status: | New |
I have tried both. Both just results in the show being viewed in the same order no matter how many times I refresh.
Can you please PM the URL and dashboard login details so I can take a closer look?
JB
JB
The Random setting in the slideshow works correct. The moment you create the slideshow you can see that it is generated randomly.
Problem is..... the slideshow has caching enabled and if concrete5 has also, then the Slideshow is created in a random order and then stays like this (which is in my opinion rather stupid).
But there is an easy fix for this, just go in concrete/blocks/slideshow/controller.php and change:
all or part you want to false and everything works and behaves as you would expect it to.
Of course the proper way would be to theme the module or part of it and make adjustments in blocks/slideshow and not in concrete/blocks/slideshow.
Problem is..... the slideshow has caching enabled and if concrete5 has also, then the Slideshow is created in a random order and then stays like this (which is in my opinion rather stupid).
But there is an easy fix for this, just go in concrete/blocks/slideshow/controller.php and change:
protected $btCacheBlockOutput = true; protected $btCacheBlockOutputOnPost = true; protected $btCacheBlockOutputForRegisteredUsers = true;
all or part you want to false and everything works and behaves as you would expect it to.
Of course the proper way would be to theme the module or part of it and make adjustments in blocks/slideshow and not in concrete/blocks/slideshow.
Ups, I might have mixed up the slideshows here, sorry, my solution is for the build in standard slideshow of concrete5 :(
But maybe try to deactivate caching global for concrete5, this would also help by the normal Slideshow, maybe that helps for this one too...
Thank you for the suggestion, it seems like it was a likely problem, but the cach was already deactivated.
JB