Give Webflow's paginated collection lists responsive page sizes, using Finsweet's CMS Load and some custom code.
For some time we've been using a CSS-based technique to control the number of collection items that appear at various breakpoints e.g. 20 on desktop, 15 on tablet, 5 on mobile-portrait.
It's very useful for basic designs that have < 100 items, and it can be an ideal solution for non-essential views. When you're showing a series of testimonials, or the most recent blog posts... it makes sense to simply truncate list items from that part of your design when the screen size becomes too small.
But this approach does not support many situations;
To make our paginated collection lists responsive, we've designed a new capability around Finsweet's powerful CMS Load more attribute.
The implementation we did uses CMS Load plus some custom code to handle the responsive pagination.
It also uses CMS Filter, and dynamic column layout changes across the breakpoints to complete the UX.
https://responsive-pagination.webflow.io
Is there a way to use this code for multiple paginations on one page?
Currently the code is designed for a page which has only one CMS Load-configured collection list. The code will need some adjustments if you have several, particularly if the responsive configuration ( N items at breakpoint X ) is different for different collection lists.
If you want to make those adjustments, check Finsweet's CMS Load API docs and look to identify and separate the CMS Load instances.
Need help?
Sygnal does custom programming for Webflow designers, contact us if you need some work done.
“Why not use multiple lists and make each one conditionally visible by breakpoint?”
The old-school hack for this problem was to have multiple paginated collection lists on your page, and then to hide/show them by breakpoint.
There are a number of substantial downsides to this.
Fortunately, there's a better mousetrap.