<$mt:ArchiveCount$>

This tag 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.

Example:

    <mt:Categories>
        There are <$mt:ArchiveCount$> entries in the <$mt:CategoryLabel$>
        category.
    </mt:Categories>
This page was last updated on 2007-09-25, 17:36.

3 Notes

"If invoked within Categories this tag will behave as if it was an alias to CategoryCount."

This functionality is broken as of 4.25. Use mt:CategoryCount when in a Category block.

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:

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

I've tried to use this tag inside an mt:Authors loop, but it didn't provide any result (0 or "No entries" using the undocumented attributes).

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.