Description
Hi! I’m new to Webflow and Finsweet and have inherited a project using Finsweet CMS filters on an events page. My goal is to add two tabs to the top of this to filter between two versions of the CMS page to further help make things easier to find.
I’ve added two toggle buttons that switch between two different CMS lists using javascript. The toggling and filtering work as expected, but I’m stuck on updating the “Showing X of X experiences” text dynamically based on the active list and its filters. I want it to be able to do something like:
If you’re on the Full list, unfiltered it shows: “38 of 38 experiences”
If you’re on the Shorter list while filtering it shows: “3 of 9 experiences”
For example and so on and so forth.
I initially tried using multiple Finsweet instances and toggling the results count along with the lists, but it doesn’t seem to sync correctly. (Possibly because this is still using the old v1 cmsfilter version?)
I’m also considering using the Javascript API to manually update the results and full list count, but not sure the best way to implement this.
Hoping a Finsweet expert here can help point me in the right direction. Thanks in advance!
Here is the staging site of what I’m working on for more context: Volunteer Experiences Toggle Test