[pmwiki-users] 2.2.0-beta36 release (pagelist template updates)

Patrick R. Michaud pmichaud at pobox.com
Fri Mar 16 10:46:49 CDT 2007


On Fri, Mar 16, 2007 at 08:25:48AM -0700, Martin Fick wrote:
> 
> --- "Patrick R. Michaud" <pmichaud at pobox.com> wrote:
> 
> > I've just released 2.2.0-beta36, which adds some new
> > features to pagelist templates.  
> ...
> > and adds some additional capabilities to the 
> > count= option in pagelists.  
> 
> Will you consider adding something to help complete
> paging support now?  A very generic solution would be
> a simple math recipe along with access to GET
> variables.  

I'm still looking into this, but my feeling is that the
"math recipe" approach is overkill (and over complex).

> Examples of how to page by ten using {$?get_var} and
> $((math_expression)) as sample notations:
> 
> (:template default size=10 count={$?beg}..$(({$?beg} +
>  {$$size})) :)

I'm still playing with the count= notation, so the syntax
might change a bit.  In particular, I think that it may
still be better to do something like

    start=m count=n

than to try to make count=m..m+n work.

Also, note that (:template default ...:) does not (yet?) understand
the {$$var} notation.  There's a small chicken-and-egg problem there,
in that we're trying to use the defaults to set options to pagelist,
but the options to pagelist are themselves the source of {$$var} values.
This isn't to say it can't be done, only that I have to look at the 
complete ramifications a bit more before enabling it.

Pm



More information about the pmwiki-users mailing list