Streaming live at 10am (PST)

How to display number of items in a collection

Hi. I am building a copy of this site https://mcveaghfleming.businesscatalyst.com/articles in Webflow.

On the right side of that link there’s a list of names, each name is an author and the number along-side is the amount of articles by the author.
In the Webflow build the content is managed by 2 collections, one for the article and one for a list of authors, they reference each other. Is there way of getting this number dynamically from the collections managing the article/author content? I haven’t been able to find a way to do it.

Cheers
Grant


Here is my public share link: LINK
(how to access public share link)

Hi @grantsenior

This might help:

1 Like

Thank you. I’ll try it.
Cheers.
Grant

2 Likes

Thanks, I got that to work in a simple setup, so, cool.
Now to see if I can get it to work in the more complex situation.
Cheers
Grant

2 Likes

That’s awesome! :smiley: Happy designing :webflow_heart:

Glad you got it to work, brilliant bit of functionality

How would this work for when there is a page with multiple CMS categories, and you are trying to show how many CMS entries exist within a category?

e.g. page with 10 categories, each with different amounts of posts within them.

I am currently achieving this through having a CMS collection, but want to display how many items exist within that category.

Any help much appreciated :slight_smile: