fs-cmsfilter-field="date"
to CMS date elements and format dates as YYYY-MM-DD
.fs-cmsfilter-operator="gte"
and "lte"
and match them to the date field.fs-cmsfilter-element
attributes.To add date filtering to your existing Webflow filters using Finsweet CMS Filter, you need to configure both your CMS date field and your filter UI properly so that Finsweet can recognize and compare dates correctly.
fs-cmsfilter-field="date"
.fs-cmsfilter-element="filter"
and a matching fs-cmsfilter-field="date"
.2024-07-01
) and add the attribute fs-cmsfilter-field="date"
.fs-cmsfilter-element="filter"
fs-cmsfilter-field="date"
fs-cmsfilter-operator="gte"
(greater than or equal to)fs-cmsfilter-element="filter"
fs-cmsfilter-field="date"
fs-cmsfilter-operator="lte"
(less than or equal to)YYYY-MM-DD
).In your page’s Before
tag custom code, include the Finsweet CMS Filter script and initialize it, referencing your CMS wrapper:
Example:fsAttributes.init();
Ensure your HTML structure follows Finsweet’s requirements:
CMS wrapper: fs-cmsfilter-element="list"
Individual items: fs-cmsfilter-element="item"
To add date filtering with Finsweet CMS Filter in Webflow:
fs-cmsfilter-field="date"
to date data in your CMS item elements.fs-cmsfilter-operator="gte"
and "lte"
for start/end dates.YYYY-MM-DD
).This setup enables dynamic filtering of CMS items based on selected date ranges.