[pmwiki-users] Pagelist pagination (was: conditionals)
Petko Yotov
5ko at free.fr
Mon Feb 19 10:55:56 CST 2007
On Monday 19 February 2007 17:01, Patrick R. Michaud wrote:
> However, I'm also wondering if we should make the count= parameter in
> (:pagelist:) use a syntax similar to the lines= parameter in
> (:include:). In other words:
>
> (:pagelist count=10 :) # first ten pages
> (:pagelist count=1..10 :) # first ten pages
> (:pagelist count=11..20 :) # second ten pages
This will be without doubt a very usefull feature, if it is not too difficult
to implement.
What I am thinking (dreaming...) of is
(:pagelist limit=10:) # ten records, starting on @$_GET['start']
If it is not the same meaning as the "include count", it may be
called "limit".
And inside the template, a markup:
(:pagelist-trail:)
which would output:
<$[prev] 1 2 3 4 [5] 6 7 $[next]>
Cheers,
Petko
More information about the pmwiki-users
mailing list