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

ABClf languefrancaise at gmail.com
Fri Jun 3 11:50:58 CDT 2011


Yes, indeed, thats a good idea ;
but I can't make it work successfully though ;)
Syntax issue ?

Test : http://www.pmwiki.org/wiki/Test/Count



2011/6/3 Patrick R. Michaud <pmichaud at pobox.com>:
> 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.
>
> Pm
>



-- 

---------------------------------------
| A | de la langue française
| B | http://www.languefrancaise.net/
| C | languefrancaise at gmail.com
---------------------------------------



More information about the pmwiki-users mailing list