Hello. I'm developing a search engine with Zope. It queries a database based on a search form and displays the results (records). I have it working and all but I would like to split the results into pages of say 10 results per page. Is this possible through Zope? I haven't found anything in the docs. But then again, I am new to Zope so maybe I didn't look in the right place. So that's my question basically. If such a thing is possible with Zope and if yes, how. Thank you, Alex
On Wednesday 13 March 2002 02:53 pm, Alexander Batzios wrote:
Hello.
I'm developing a search engine with Zope. It queries a database based on a search form and displays the results (records). I have it working and all but I would like to split the results into pages of say 10 results per page. Is this possible through Zope? I haven't found anything in the docs. But then again, I am new to Zope so maybe I didn't look in the right place. So that's my question basically. If such a thing is possible with Zope and if yes, how.
checkout zopebook. look for batching
Thank you, Alex
Read the docs on <dtml-in>. It will show you how to handle batches. Joel BURTON | joel@joelburton.com | joelburton.com | aim: wjoelburton Knowledge Management & Technology Consultant -----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Alexander Batzios Sent: Wednesday, March 13, 2002 1:53 AM To: zope@zope.org Subject: [Zope] result pages question Hello. I'm developing a search engine with Zope. It queries a database based on a search form and displays the results (records). I have it working and all but I would like to split the results into pages of say 10 results per page. Is this possible through Zope? I haven't found anything in the docs. But then again, I am new to Zope so maybe I didn't look in the right place. So that's my question basically. If such a thing is possible with Zope and if yes, how. Thank you, Alex
Hey... The easiest way to do it, is to add a "search method" form the zope mgt interface. It will create a pair of DTMl methods that have the batching code in place. you can then pull it out to do whatever you need. -ed- ----- Original Message ----- From: Alexander Batzios To: zope@zope.org Sent: Tuesday, March 12, 2002 10:53 PM Subject: [Zope] result pages question Hello. I'm developing a search engine with Zope. It queries a database based on a search form and displays the results (records). I have it working and all but I would like to split the results into pages of say 10 results per page. Is this possible through Zope? I haven't found anything in the docs. But then again, I am new to Zope so maybe I didn't look in the right place. So that's my question basically. If such a thing is possible with Zope and if yes, how. Thank you, Alex
participants (4)
-
Alexander Batzios -
bak -
Ed Colmar -
Joel Burton