Show random 8 CMS items on page refresh

Need help with implementing this.


Here is my public share link: Webflow - mCube Design

Hi Anand, PM me if you need some dev help with this.
This cloneable is what you’re looking for.

1 Like

Thank you very much! This works perfectly!

I have around 200 reviews for a site that I would like to show one at a time with the ability to go to the next ones, paginate, and have it show randomly with each page visit. So please upvote the issue here:
Maybe we should upvote this
https://wishlist.webflow.com/ideas/WEBFLOW-I-5660
Thank you

Randomization ( especially on each visit ) and pagination don’t play nice together. The reason is when you go to page 2, that’s a new visit, so you’ll get a new random list. Pagination becomes irrelevant quickly.

Thank you so much for your reply. I understand your point, so can you think of something to help with this situation? Let’s say how to show ten reviews one at a time randomly picked. Maybe a slider, but then the second one could randomly be the first review anyway, as I guess one needs to set them one by one.

@Svensson

Here’s a cloneable I built of my approach. If you want to have a maximum # of random items, set your collection to no item-limit ( it will limit at 100 ), no pagination, and sort randomly. My sorting library will work on top of that.

The effect you’ll get is that every 12 hours, Webflow will randomly pick 100 of your total reviews. My library then resorts that 100 randomly on each page refresh.

If you avoid my “limit to” feature, you can combine it with a slider like splide.js to page through 10 at a time of those 100.