I have CMS filters set up, and I am having an issue on the live site. The filters are set to clear on the expand/collapse icons because the client doesn’t want the filter categories to stack (only filter for solutions OR audiences at a time). I am encountering a few issues:
When filters are cleared, the CMS items are no longer populating
The load more button is showing when there is no content
I have an empty state attribute set up that is not populating
@Support-Luis I took all the filter fields out of the dropdown on this page.. I also removed all clear filter items except one. Any ideas on the next steps? Is the filtering set up correctly?
@Support-Luis **Update: I made some changes to the page but am still running into many of the same bugs. Changes:
Removed all instances of the clear all filter button
Added clear buttons for each category with the fs-cmsfilter-clear = IDENTIFIER attribute. This does not appear to be functioning properly for any of the filter categories
Changed dropdowns to accordions
Moved the empty state div with fs-cmsfilter-element = empty out of the filters area. This is still not working.
Added active filter tags.
Remaining Bugs:
Empty state div not showing correctly
Load All Button showing when there are no collection items that meet the filter criteria
These are only needed in the first list. This has now shown the empty element on my end but it seems your filters are not correctly setup as no options from the dropdowns seem to return a result but the text input does correctly filter the lists.
To fix this you can try delaying CMS Filter after CMS Nest is done like you did with CMS Combine. Please let me know if this fixes it
@Support-Luis This seems to be working better, but the clear buttons for each category still aren’t working. Any ideas on why that would be? I have the following attributes on the 3 clear buttons respectively:
fs-cmsfilter-clear = solutions
fs-cmsfilter-clear = audiences
fs-cmsfilter-clear = topics
I tried replacing the accordion with a dropdown and it is still not working so I dont think that is the issue.
I also added the filtering element to the combined lists and that is not helping either. Any ideas?
hey @Poetic I am not sure what is breaking the filter setup. Could you create a test page with only the CMS Filter setup? If we get the same setup working on this test page we can then find if any script is breaking or blocking CMS Filter