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?
(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 |
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
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
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
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
Thanks Ramon - Appreciated
Thanks Ramon - Appreciated
This will be available in the next update.
Kind regards,
Ramon