<$mt:EntriesCount$>

Returns the count of a list of entries that are currently in context (ie: used in an archive template, or inside an Entries tag). If no entry list context exists, it will fallback to the list that would be selected for a generic Entries tag (respecting number of days or entries configured to publish on the blog's main index template).

This page was last updated on 2007-08-14, 20:53. [Edit]

3 Notes

this tag works within context of an narrowed entries container, i.e. ...

The short description seems to suggest that it will only count entries in a particular BlogID or at least that's how I misread it...

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:entriescount 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"

Unfortunately this tag doesn't work correctly when provided inside an mt:Author loop on an Index Template, though it works inside an Author Archive Template.

I'm going to open a Bug case for this!

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.