fs-cmsfilter-sort
and preserve sorting across pagination by setting up fs-cmsfilter-element
attributes on buttons, collection lists, and pagination controls.You're encountering an issue with sorting CMS items via button-based filters on a Webflow CMS page, especially when navigating across paginated content. Here’s how to address and resolve that.
Steps to implement:
tag.
fs-cmsfilter
attributes.fs-cmsfilter-sort
attribute with the corresponding CMS field name on each button.sortable
attribute to your collection-list-wrapper
.Example:
fs-cmsfilter-sort="price"
to sort by a field called price
.fs-cmsfilter-element="list"
to your list wrapper.fs-cmsfilter-element="list"
container.fs-cmsfilter-element="pagination"
attributes accordingly.fs-cmsfilter
attributes.cmsfilter.js
is correctly loaded and initialized.To implement button-based sorting across paginated CMS pages, use Finsweet’s CMS Library filtering and sorting attributes. Webflow doesn’t support this natively, but Finsweet extends this functionality and persists state across pages.