I'm not sure where to start here, and I'm kind of new to Zope here, but I thought I would ask. How do most ZSQL generated lists get paginated? I haven't seen hardly anything pointing to a way of doing this. Maybe I'm just looking in the wrong area. I would like to know how to display a list of items with a page break that displays page numbers, something similar to this: (Prev - 1 - 2 - 3 - Next) I would appreciate any input on how someone else achieved this. Thanks :) -Brendan
It's called batching in Zope. Search on batch and you will find many things. The batch size (or page size) is the number of objects(or records) displayed per page. Here is a sample. Modify Randolpho's script for ZSQL. http://www.zopelabs.com/cookbook/1019946889 Cheers, -Trevor
-----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Brendan Crosser-McGay Sent: Monday, March 10, 2003 5:42 PM To: Zope Mailing List Subject: [Zope] Pagination
I'm not sure where to start here, and I'm kind of new to Zope here, but I thought I would ask. How do most ZSQL generated lists get paginated? I haven't seen hardly anything pointing to a way of doing this. Maybe I'm just looking in the wrong area. I would like to know how to display a list of items with a page break that displays page numbers, something similar to this: (Prev - 1 - 2 - 3 - Next)
I would appreciate any input on how someone else achieved this. Thanks :) -Brendan
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
participants (2)
-
Brendan Crosser-McGay -
Trevor Toenjes