<$mt:CategoryCount$>

The number of published entries for the category in context.

Example ΒΆ

List categories containing entries with a count:

<ul>
<mt:Categories>
    <li>
        <a href="<$mt:ArchiveLink type="Category"$>"><$mt:CategoryLabel$></a> (<$mt:CategoryCount$>)
    </li>
</mt:Categories>
</ul>
This page was last updated on 2009-06-23, 12:22. [Edit]

1 Note

All counts take the following additional (undocumented) attributes:

           singular="1 sometext" plural="# sometext" none="No sometext"

Where sometext is whatever you want.

Thus, this could be:

           <mt:categorycount singular="1 entry" plural="# entries" none="No entries">

and it will say "1 entry", "2 entries" (or whatever number of entries it finds) or "No entries"

Leave a note

Have a question? Please use the MT Forums. Notes submitted on documentation should pertain to tips & hints regarding documentation. Your note may be removed once its contents have been integrated into the body of the page.