Randomize Feature

Permalink Browser Info Environment
Hello,
(Sorry I will finish Japanese translation after I finish this project.)

I've got the situation where I needed to randomize the order of the slideshow.
So it would be nice to have the function to randomize the order of items. Perhaps, add the random order option to the repeatable?

$slideshow_item_keys = array_keys($slideshow_items);
shuffle($slideshow_item_keys);
foreach($slideshow_item_keys as $key)
{
    $slideshow_random_items[$key] = $slideshow_items[$key];
}

Type: Discussion
Status: Resolved
katz515
View Replies:
ramonleenders replied on at Permalink Reply
ramonleenders
Hi Katz,

This will be available in the next update.

Kind regards,

Ramon
Matteld80 replied on at Permalink Reply
Matteld80
Hi Ramon

How can I disable randomized order of items once it's set? Turns out client wants it in a particular order and I don't want to rebuild the block.

Thanks, Matt
ramonleenders replied on at Permalink Reply
ramonleenders
Hi Matt,

In your controller.php file, you have to find your "view" function. In it, you will see something like "shuffle($xxxx_items);". You can uncomment/remove this line, as this does the shuffling.

Kind regards,

Ramon
Matteld80 replied on at Permalink Reply
Matteld80
Thanks Ramon - Appreciated
Matteld80 replied on at Permalink Reply
Matteld80
Thanks Ramon - Appreciated

concrete5 Environment Information

All

Browser User-Agent String

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.112 Safari/537.36

Hide Post Content

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

Hide Content

Request Refund

You may not request a refund that is not currently owned by you.