[Zope] ZCatalog previous and next items in list

Chris Crownhart ccro@kaivo.com
Tue, 30 May 2000 12:03:54 -0600


I am using a <dtml-in> to walk through a catalog and display the results
for a given query.  When someone clicks on an item in a list, I would
like to be able to pass the id of the item above it and below it.  For
example,

Given this result set:

Title	Desc
-----	------------------
Item 1	This is item 1.
Item 2	This is item 2.
Item 3	This is item 3.

If the user click on Item 2, I want to pass the id of Item 1 and Item 3
to the next page.  Does either dmtl-in or ZCatalog provide a variable
that stores the id's for those (i.e. something like 'sequence-1' and
'sequence+1')?

Thanks,

	Chris