[pmwiki-devel] how to access MatchCount from pagelist
Patrick R. Michaud
pmichaud at pobox.com
Fri Feb 13 11:59:51 CST 2009
On Fri, Feb 13, 2009 at 04:06:02PM +0000, Hans wrote:
> Friday, February 13, 2009, 3:39:41 PM, Patrick wrote:
> > FWIW, if I were creating a dynamic link navigation such as
> > this I would use a special markup and not try to make a pagelist
> > template do the work.
> I agree. I have been doing it that way. But the function constructing
> the navigation links will need to know how big the pagelist is, and
> for that it has to call pagelist. so we running it twice:
> for the dynamic nav links and for the actual formatted output.
> The question if this double call can be avoided was my original query.
To be more specific, I would use the special markup from
_within_ the pagelist template. Then the page count would be
(and other pagelist items) would be easily available.
More information about the pmwiki-devel