How can I count the CMS field and display the count?

I tried a lot of custom code from chat GPT but was unable to get the desired results, How can I count the category field from the Blog CMS and have the output as the number, I created another CMS called "Categories" and used it as reference but can't figure this out, if somebody can help me with this.
No description
6 Replies
Ander
Ander14mo ago
hey @Sushant Dhiwar , did you try the finsweet solution for this? : https://finsweet.com/attributes/count-list-items
Count List Items - Count the number of items in a Webflow CMS Colle...
Count and display the number of items in a Webflow CMS Collection List
Sushant Dhiwar
Sushant DhiwarOP14mo ago
Hey @Ander , I tried this but this counts the number of items in the collection list, I want to calculate how many of the collection item has the collection field "category", for eg. if there are 20 blogs items how many of the items have the category as "Manufacturing"? and others likewise. I tried custom code but it's still not working. Thanks @Ander I am able to solve it by combining the attributes and cms filtering 😄 Hey @Ander can you help me with this? Also, How can I make the read more click interaction in the blog img below, I tried setting the height to 6rem and then auto, it worked for me but it's not smooth it's causing a delay because the original size of the block is auto. (Can you suggest me the best way to fix it?) Image
Sushant Dhiwar
Sushant DhiwarOP14mo ago
No description
Ander
Ander14mo ago
sorry, what's the issue? the "read more" goes to the Blog Detail?
Web Bae
Web Bae14mo ago
@Ander thanks for helping out on this! I was going to recommend the FS attributes solution too. @Sushant Dhiwar I answered your question in your other post.
Sushant Dhiwar
Sushant DhiwarOP14mo ago
@Ander the issue is resolved. The read more goes to the blog page that's it. @Web Bae yes, thank you.
Want results from more Discord servers?
Add your server