Community forum for knowledge and support

Updated 11 months ago

Adding Filters to a CMS Collection

At a glance

The community member is having trouble applying filters to a CMS collection list using the Finsweet documentation. They provided a video to show the problem they are facing. Other community members tried to help by suggesting moving the attribute to different elements, such as the radio element, form element, and list element. The issue was eventually resolved by moving the attribute to the form element container, but the community members noted that this may be a bug in the Finsweet documentation, as it states the attribute can be on the "Form block or form" but it only worked when placed on the form.

Useful resources

Please can someone help me with a solution for adding filters to a CMS collection?
Having trouble applying filters to a CMS collection list using the documentation here: https://finsweet.com/attributes/cms-filter.
Here is a video showing the problem I’m facing. Thank you.

M
N
17 comments

Would love to help! I appreciate the video but to better help, more efficiently I would love to have the preview/read-only link as well as the published URL.

Sure, kindly find the requested links below.
Read-only link
Published link

Thanks

I ran the Finsweet self-help check on your published URL and its saying the attribute is on the wrong element. Needs to be on the radio element.

https://daraas-landing-page.webflow.io/blog-v2?fs-attributes-support=true

hmmm… wrong element. radio element not the text element inside?

Let me try that, now. thank you

Still not working😔

I'd run the self-help link above and it'll walk you through where to look next.

and actually, I think you had it in the right spot...it says "radio label".

this might not matter but its worth doing - I would move the attribute from the block, to the form element below it.

<strike>Ah this part DOES matter - this attribute has to be on the list element, NOT the wrapper. </strike>Okay maybe not, it can be either or but I always put it on the list. Same with the other attribute.

looks like the self-help link seems to be reporting things are working properly now?

Yes!… So the issue was with the form element container

okay - so moving the attribute to the form, instead of the block or?

Correct, the attribute was on the form block before

thank you so much for your input!

okay interesting, I think thats a bug with finsweet honestly because the documentation clearly states "Form block or form" - but clearly the code only works if its on the form.

Add a reply
Sign up and join the conversation on Slack