[Zope] Including a method returning batches inside a page.

Jean Jordaan Jean@mosaicsoftware.com
Wed, 23 Aug 2000 14:11:08 +0200


Hi all

In my 'index_html', I have::

  <dtml-var docsByTitle>

This is supposed to return batches of documents, similarly to
http://www.zope.org/Products/ [1]. It works halfway, but the links
to previous and next batches of course refer to 'docsByTitle'
and not to 'index_html'::

  <a href="<dtml-var document_id><dtml-var sequence-query>qs=<dtml-var
next-sequence-start-number>">

I could include the looping code in 'index_html' (like [1] does),
but that isn't pretty -- and besides, I'd like to be able to choose
between 'docsByTitle', 'docsByOrigin', 'docsBySeries', etc. Is the 
best way to do this to carry the relevant variable ('sequence-query',
'next-sequence-start-number' back and forth between 'index_html' 
and 'docsByTitle' in the REQUEST? How would you tackle this?

-- 
Jean Jordaan       --    technical writer    --
Mosaic Software    --    Zope 2.1.6 on WinNT and W2K