[pmwiki-users] How to count all pages
Patrick R. Michaud
pmichaud at pobox.com
Thu Jan 11 10:32:05 CST 2007
On Thu, Jan 11, 2007 at 04:09:10PM -0000, marc wrote:
> PP Köln ZA 121 said...
> > How to count all pages in all groups of a pmwiki and show the total amount
> > on a page?
>
> Try:
>
> In config.php
>
> Markup('CountAllPages',
> 'inline',
> '/\(:CountAllPages *:\)/ie',
> count(ListPages()));
>
> Use with (:CountAllPages:)
It can also be done in markup using pagelist:
(:pagelist fmt=#pagecount list=all:)
[[#pagecount]]
(:if equal {>$FullName}:)
This site contains {$$PageCount} pages.
[[#pagecountend]]
See http://www.pmwiki.org/wiki/Test/PageCount .
Pm
More information about the pmwiki-users
mailing list