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?

Type: Discussion
Status: New
tommyf
View Replies:
jb1 replied on at Permalink Reply
jb1
Are you selecting "random" or "random set"?

JB
tommyf replied on at Permalink Reply
tommyf
I have tried both. Both just results in the show being viewed in the same order no matter how many times I refresh.
jb1 replied on at Permalink Reply
jb1
Can you please PM the URL and dashboard login details so I can take a closer look?

JB
Kiesel replied on at Permalink Reply
Kiesel
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:

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.
Kiesel replied on at Permalink Reply
Kiesel
Ups, I might have mixed up the slideshows here, sorry, my solution is for the build in standard slideshow of concrete5 :(
Kiesel replied on at Permalink Reply
Kiesel
But maybe try to deactivate caching global for concrete5, this would also help by the normal Slideshow, maybe that helps for this one too...
tommyf replied on at Permalink Reply
tommyf
Thank you for the suggestion, it seems like it was a likely problem, but the cach was already deactivated.

concrete5 Environment Information

Browser User-Agent String

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.