Display Number of Items in Collection

Hello,

I have three collections:

  • a collection of topics
  • a collection of sub-topics, linked to topics
  • a collection of skills, linked to sub-topics

I want to display the number of skills in the skills collection, instead of the list of skills. How can I do that?


Thank you

Hello, Can you tell us more about your data tree inside your variable or in your collection?

  • Subtopics live under topics- subtopics are linked to topics through a topic ID
  • Skills live under subtopics - skills are linked to topics through a subtopic ID

Below is the schema:


Inside the weweb collection “Skills” or inside your variable (if it’s an array) you should have access to an attribute named “Total” or “Length”. Is it what you’re looking for?

image

Screen Shot 2023-07-05 at 12.46.31 am

That worked, however it is showing a the number of times of the length. How should I fix this? Thank you :slight_smile:

You used a collection list for skills. If you only want one value you should use a container that will contain a text element that is binded to the size of the skill array