Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Jay Amang 13 posts 93 karma points
    Jan 01, 2022 @ 15:32
    Jay Amang
    0

    Umbraco V9 Counter

    I'm still learning umbraco cms so I hope your consideration on this question.

    Is there a way to count the number of content item under a list view and display it?

    enter image description here

    Example from the picture above, I would like to display the count of these contents, In this case it is 3.

    Thanks!

  • Dennis Aaen 4500 posts 18255 karma points admin hq c-trib
    Jan 01, 2022 @ 15:55
    Dennis Aaen
    0

    Hey Jaypennson

    First of all welcome to Our and Happy New Year.

    There is a method called count() perhaps you can give it a go

    You can find the documentation here https://our.umbraco.com/documentation/reference/querying/ipublishedcontent/Collections/#count

    Hope this helps,

    /Dennis

Please Sign in or register to post replies

Write your reply to:

Draft