Not a developer? Go to MovableType.com

Documentation

WebsitePageCount

Returns the number of published Pages associated with the Website currently in context.

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:WebsitePageCount 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:WebsitePageCount plural="# pages">

none

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

<mt:WebsitePageCount none="No pages">

or

<mt:WebsitePageCount none="None">

Example

This returns

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

1 Comment

Joe Forener

Joe Forener on August 29, 2012, 2:36 a.m. Reply

Does it put a link on the numbers or simply a number? Could I use it as a pagination or not?

Leave a Comment