Streaming live at 10am (PST)

Webflow CMS - how to get the number of CMS items under collection?

#1

Any code or shortcode for this idea.

In this example how to get the number “56”:
image

Examples of use (sidebar menu):
image


In the past, I solve this in some project by custom code (codepen below).
But It will only work if the full collection list and a counter-menu will be on the same page + complex.

0 Likes

#2

Until that is something exposed by webflow, I think the only way to pull it off would be to use the API to provide data that you could pull in via Ajax and render on the site. You could count elements on the page but if your paginating you would not have an accurate count.

1 Like