[pmwiki-devel] how to access MatchCount from pagelist
Peter Bowers
pbowers at pobox.com
Fri Feb 13 00:40:53 CST 2009
On Thu, Feb 12, 2009 at 10:01 PM, Patrick R. Michaud <pmichaud at pobox.com>wrote:
> On Thu, Feb 12, 2009 at 09:41:30PM +0100, Peter Bowers wrote:
> >
> > I looked at this once before and came to the conclusion that either (a)
> you
> > have to call pagelist twice or (b) you have to copy FPLTemplate() and
> make some
> > alterations. (This could be done as a recipe since $FPLFormatOpt holds
> this
> > function name.)
>
> ...or, if I'm wrong and it's not really possible to get to the matchcount
> easily, you can propose modifications to FPLTemplate() for the core. :-)
I think all that's needed is this line:
$FmtV['$AllMatchCount'] = count($matches);
But this must occur *before* $opt['count'] processing.
We already have a $MatchCount, but it respects the count=21..40, thus making
it impossible to use to print a list of upcoming pages...
-Peter
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.pmichaud.com/pipermail/pmwiki-devel/attachments/20090213/f73fa343/attachment.html
More information about the pmwiki-devel
mailing list