[pmwiki-users] PageListCount (was: ZAPmarkups)
Patrick R. Michaud
pmichaud at pobox.com
Mon Apr 2 20:29:19 CDT 2007
On Mon, Apr 02, 2007 at 11:42:47PM +0100, Hans 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.
If people think that fmt=count is generally useful enough, I can
certainly add it to the core instead of leaving it as a recipe.
Pm
More information about the pmwiki-users
mailing list