[pmwiki-devel] how to access MatchCount from pagelist
Patrick R. Michaud
pmichaud at pobox.com
Thu Feb 12 14:49:35 CST 2009
On Thu, Feb 12, 2009 at 07:45:28PM +0000, Hans wrote:
> I wonder how to access $MatchCount from pagelist in php.
> I like to come up with a better way to construct ranges for the
> pagelist count= parameter (count=from..to) in order to develop a n
> efficient breakpagelist (pagelist broken into chunks and custom links
> to navigate the subpages).
I would prefer not to modify the existing meaning of count= .
Instead I'd like to see us have a start= parameter that indicates
where counting should begin.
> Can it be done in one use of pagelist? Do I need to have a pagelist
> first to generate a pagelist count, which then can be used to
> generate the from..to range ?
No, you should be able to get the value from the size of the
pagelist array.
Pm
More information about the pmwiki-devel
mailing list