[pmwiki-devel] how to access MatchCount from pagelist

Patrick R. Michaud pmichaud at pobox.com
Fri Feb 13 09:35:09 CST 2009

On Fri, Feb 13, 2009 at 07:58:57AM +0100, Peter Bowers wrote:
>     Hans wrote:
>     > Thursday, February 12, 2009, 9:01:09 PM, Patrick wrote:
>     >
>     >> ...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.
>      :-)
>     >
>     > okay, I can't get it to work unless there are some changes.
>     > Here is a code proposal. It introduces a PV $PageListCount,
>     > which works great in a pagelist template to show the total number of
>     > items.
>     Doesn't {$PageCount} already do this?
> As I understand $PageCount it is a "pseudo variable" available only during
> actual processing of a pagelist.  If you want to access it afterwards to print
> a list of available pages you will find it is blank...  

I don't understand "access it afterwards"... how would one
access {$PageListCount} "after a pagelist"?  Page variable
substitutions always take place _before_ pagelists are processed.


More information about the pmwiki-devel mailing list