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

_______________________________________________
pmwiki-users mailing list
[email protected]
http://www.pmichaud.com/mailman/listinfo/pmwiki-users

Reply via email to