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

Martin Fick mogulguy at yahoo.com
Fri Mar 16 10:25:48 CDT 2007


--- "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.  

Those are some really cool new features, thanks!  

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.  

Examples of how to page by ten using {$?get_var} and
$((math_expression)) as sample notations:

(:template default size=10 count={$?beg}..$(({$?beg} +
 {$$size})) :)

[[{$FullName}?beg=$(({$?beg}-{$$size}))|Prev
{$$size}]]
[[{$FullName}?beg=$(({$?beg}+{$$size}))|Next
{$$size}]]

Or you could even allow a simplification that would
not require the outer {} rackets inside of math
expressions so that it could look more like this:

(:template default size=10 count={$?beg}..$(($?beg + 
$$size)) :)

[[{$FullName}?beg=$(($?beg - $$size))|Prev {$$size}]]
[[{$FullName}?beg=$(($?beg + $$size))|Next {$$size}]]


-Martin



 
____________________________________________________________________________________
Sucker-punch spam with award-winning protection. 
Try the free Yahoo! Mail Beta.
http://advision.webevents.yahoo.com/mailbeta/features_spam.html



More information about the pmwiki-users mailing list