Hey there. I would like to achieve true random for a collection. It’s for native ads that run on our website. We partner with local businesses and groups to run ads on our news website. I want the collection to be random every time, not just every 12 hours when the cache refreshes. You can see examples of our banner and square ads on at the read only link.
I assume I’ll need some custom code to achieve this. Please advise!
The only way to do this without leveraging an external API that could return randomized data would be to hide the collection list output on the page that contained the data to randomize it. One way is to convert that to a JavaScript array, randomize the array and return a single result . Of course this requires custom code but there are plenty of examples online if you know where to look.
Webflow doesn’t like it when I try to post this in all the discussions about this topic. It says the post is similar. (not anymore I guess with the above explanation) anyway
Forum software is designed to prevent that, because it’s spammy and pushes all of those posts to the top of the list. I get what you’re trying to do, I’ve encountered that too sharing some of the cloneable solutions I build.
My advice is just pick the 2 or 3 main threads, and add your solution there.