Webflow CMS & Collection Lists

Random, Dynamic List Sorting

No items found.
Overview
CMS Basics
Strongly-typed Data-binding
11:45
101
CMS Field Types
11:45
102
Sorting Collection Lists
Sorting by OPTION & REF Fields
13:43
201
Random, Dynamic List Sorting
202
Filtering Collection Lists
Filtering Collection Lists
11:45
250
Filtering Collection Lists by Date Range
11:45
252
Working with Collection Lists
How Collection List Pagination Works
3:46
301
Unbinding Collection Lists
3:46
302
Hide an Entire Section w/ Empty Collection Lists
7:00
303
Nesting Collection Lists
304
Display Filename for Download
Int
305
Collection Lists & Custom Code
How to Store Custom Code in a CMS Text Field
Int
400
How to Bind CMS fields to Custom Attributes
Int
401
Collection Pages
Collection Pages
501
Password-Protecting Collection Pages for Specific CMS Items
502
Prev-Next Navigation
503
No items found.

Sometimes it's nice to be able to feature things randomly on a page... a few random customer testimonials, or some featured products, for example.

Maybe you have a photo gallery, but you want to mix up those tiles regularly to make it more interesting.

Webflow introduced random sorting for Collection Lists in 2016. To use it, just select your Collection List in the designer and set the sorting to-

Random order, shuffle

Best Practices & Limitations

Random + Limit

I use this feature often in sidebar views, where e.g. I want to show 2 testimonials, but I want them to change automatically.

To do use, use random order, with limit = 2 on that Collection List. These two work together beautifully.

Then below that list, you can add a link to view all which takes them to the all testimonials page.

How often does it refresh?

Note that the random ordering will update every 12 hours, and generally not on each visit.

If you want sorting to be more frequent, you can do the sorting client-side.

Don't use pagination

Importantly, random and pagination do not work together.

As of 2024-Mar, it appears that when you enable pagination, that the random sorting doesn't actually occur. It may look random, but the 12 hour refresh will not show different results.

There is no indication that random sorting will not apply.

This feature deprecation was likely done to prevent an earlier problem where having both features work in parallel could generate pages that contain duplicates.

Wishlist item - https://wishlist.webflow.com/ideas/WEBFLOW-I-5660

References

https://discourse.webflow.com/t/cms-random-sorting/20206/9?u=waldo

https://webflow.com/feature/random-dynamic-list-sorting#:~:text=Just%20choose%20%22Random%20order%22%20as,CMS%2C%20and%20on%20published%20sites.

https://university.webflow.com/lesson/sort-collection-lists

Table of Contents
Did we just make your life better?
Passion drives our long hours and late nights supporting the Webflow community. Click the button to show your love.