ArchiveCount
This tag will return a value corresponding to the number of entries in an ArchiveList block tag context.
Additionally, this tag can be used in other contexts, and will potentially return two different values depending upon the context in which it is invoked.
If invoked within Categories this tag will behave as if it was an alias to CategoryCount.
Otherwise it will return the number corresponding to the number of entries currently in context. For example within any Entries context, this tag will return the number of entries that that Entries tag corresponds to.
Alternatively, Count tags exist for each object, which are often a better choice when working outside of the ArchiveList block tag context.
Simple Example
<mt:Categories>
There are <mt:ArchiveCount> entries in the <mt:CategoryLabel> category.
<mt:Categories>
Attributes
All <mt:ArchiveCount>
attributes are optional. The most common attributes are:
singular
Allows special formatting for when the number of published objects is equal to 1.
<mt:ArchiveCount singular="1 entry">
plural
Allows special formatting for when the number of published objects is greater than 1. #
is automatically replaced with the number of objects.
<mt:ArchiveCount plural="# entries">
none
Allows special formatting for when the number of published objects is 0 (zero).
<mt:ArchiveCount none="No entries">
or
<mt:ArchiveCount none="None">
Example with Attributes
<$mt:ArchiveCount singular="1 entry" plural="# entries" none="no entries">