[pmwiki-users] About "fmt=count" : does count the non existant page

Patrick R. Michaud pmichaud at pobox.com
Fri Jun 3 09:42:47 CDT 2011

On Fri, Jun 03, 2011 at 03:38:55PM +0200, ABClf wrote:
> I remark that "fmt=count" counts the non created pages ; I'm not sure
> it is always the best behaviour.
> When writing (:pagelist trail=BibliographieDesDictionnaires
> fmt=count:) i'm expecting to get the number of existing pages.
> What do you think about ? what about a new fmt :
> fmt=count -> count all, no change ;
> fmt=countexisting -> count only existing pages.

Try the following:

    (:pagelist "if=exists {=$Name}" fmt=count ... :)

That should limit the count to only the existing pages.


More information about the pmwiki-users mailing list