[pmwiki-users] pagelist pagination

noskule noskule at gmx.net
Wed May 16 10:55:20 CDT 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Patrick R. Michaud schrieb:
> On Wed, May 16, 2007 at 06:57:45AM +0200, Christophe David wrote:
>> On Sat, May 12, 2007 at 04:13:10PM +0200, Christophe David wrote:
>>>> Is there a ready-made way to handle pagelists pagination ?
>>>>
>>>> Say a pagelist returns 1.000 entries and you use count=50..100 .
>>>>
>>>> How do you create dynamic "previous" and "next" links to tha same
>>>> pagelist with count=0..50 and count=100..150 ?
>>> You can't -- yet.  I believe PM is working on this, though whether it
>>> will make it into the current 2.2 version or have to be postponed to a
>>> later version, I don't know.
>> Pm,
>>
>> Could you please give us some info about your plans for this and your
>> recommendations ?
> 
> I'm not sure what my plans for this will be.  It is a tricky problem,
> because if a pagelist template uses any (:if:) directives to exclude
> pages from appearing in a list, then we can't be certain of the
> count of pages being displayed.  
> 
> For example, people will get very confused if they specify count=1..10,
> but an (:if:) directive in the pagelist template only displays 5 of them.
> 
> Pm

a new argument called break, part, split or the like could be used

(:pagelist count=50 break=10:)

would mean take 50 units and display it in junks of then units.
nos





> 
> _______________________________________________
> pmwiki-users mailing list
> pmwiki-users at pmichaud.com
> http://www.pmichaud.com/mailman/listinfo/pmwiki-users
> 

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGSylorGF5npnsxVgRArutAJ9C3cBD4VlVL5l/8oiSK8rk+9hwBQCgtGsg
q4erJnwXIH1hP4xTEnFYv2A=
=14FJ
-----END PGP SIGNATURE-----



More information about the pmwiki-users mailing list