Not a developer? Go to MovableType.com

Documentation

BlogPageCount

The number of published pages in the blog. This template tag supports the multiblog template tags.

Attributes

MultiBlog Attributes

This template tag supports the multiblog template tags.

Count Attributes

singular

Allows special formatting for when the number of published objects is equal to 1.

<mt:BlogPageCount singular="1 page">

plural

Allows special formatting for when the number of published objects is greater than 1. # is automatically replaced with the number of objects.

<mt:BlogPageCount plural="# pages">

none

Allows special formatting for when the number of published objects is 0 (zero).

<mt:BlogPageCount none="No pages">

or

<mt:BlogPageCount none="None">

Example

<$mt:BlogPageCount singular="1 page" plural="# pages" none="No pages"$>

This returns

"1 page" or "9 pages" or "No pages".
Back