<$mt:BlogPageCount$>

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

Attributes

Example

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

This returns

"1 page" or "9 pages" or "No pages".
This page was last updated on 2011-05-23, 08:39.

3 Notes

This tag supports the MultiBlog template tag attributes blog_ids/include_blogs and exclude_blogs for aggregating across different blogs.

To resolve any confusion, this tag returns the quantity of Pages in a blog whose status is published. His twin sister is , which returns the quantity of Entries in a blog whose status is published.

You may like to also label this number using say "page", "pages" or just "no pages".

For doing that you would use something like:

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

And it would return:

"1 page" or "2 pages" or "No pages".

You could change the expressions "page", "pages" and "No pages" from the above attributes to whatever you like.

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.