<$mt:BlogPageCount$>
The number of published pages in the blog. This template tag supports the multiblog template tags.
Attributes ¶
- singular="TEXT" plural="# TEXT" none="TEXT"
include_blogsexclude_blogsinclude_websitesexclude_websites
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.
Jay Allen
November 1, 2007 5:32 PM | Reply
This tag supports the MultiBlog template tag attributes
blog_ids/include_blogsandexclude_blogsfor aggregating across different blogs.nataliepo
July 25, 2008 7:45 AM | Reply
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.
Mihai Bocsaru
November 10, 2009 12:50 PM | Reply
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 ;)