[pmwiki-users] ZAPmarkups

The Editor editor at fast.st
Tue Apr 3 03:34:28 CDT 2007


On 4/2/07, Hans <design5 at softflow.co.uk> wrote:
> Monday, April 2, 2007, 11:32:30 PM, The wrote:
>
> > I'm not too familiar with Pagelistcount, but I think that is only for
> > use in pagelist templates, correct?  I use this in various situations
> > outside of pagelists.  For example, I use it to tell how many comments
> > are posted on a certain topic, or whatever.  Can Pagelistcount do
> > anything like that?
>
> Yes PagelistCount i.e. using fmt=count in a pagelist directive will
> just output the number of pages pagelist finds, as per parameters set
> in (:pagelist ...:) like group= or list= or name=-blabla. So it gives
> precise results, and only a number. Plus it can be used inline, as the
> fmt is not based on a fmt template, but through its own function.
> And it can also be used inside fmt templates (LocalTemplates), i.e.
> a pagelist will be used inside a pagelist.
>
> It is really very good and totally flexible, even though the markup is
> just standard pagelist markup. Well because of.


I still think the first is easier than the second.  And you can use it
just fine in a template as needed...

{(count Snippets|HomePage)}
(:pagelist group=Snippets name=-HomePage list=normal fmt-count:)

Cheers,
Dan

PS.  I'll fix the other suggestions you made perhaps tomorrow...



More information about the pmwiki-users mailing list