<$mt:BlogEntryCount$>

Returns the number of published entries associated with the blog currently in context.

This template tag supports the multiblog template tags.

This template tag also supports all of the same filtering mechanisms defined by the <mt:Entries> tag allowing users to retrieve a count of the number of entries on a blog that meet a certain criteria.

Example ΒΆ

If a blog had 23 entries

<$mt:BlogEntryCount$>

will output the number

23
This page was last updated on 2009-05-28, 16:30. [Edit]

1 Note

There are a couple of undocumented attributes for this tag.

They are:

singular="1 entry" plural="# entries" none="No entries"

To incorporate this you would use:

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

The above would return:

"1 entry" or "9 entries" or "No entries".

You could customize the words "entry", "entries" and "No entries" from the above attributes.

Enjoy ;)

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.