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

Phil Harris phil.harris@zope.co.uk
Wed, 23 Aug 2000 13:59:37 +0100


Is docsByTitle a DTML Document?

If so then try making it a DTML Method.

It seems to be taking the properties from itself rather than it's container,
if yu see what I mean.

hth

Phil
phil.harris@zope.co.uk

----- Original Message -----
From: "Jean Jordaan" <Jean@mosaicsoftware.com>
To: <zope@zope.org>
Sent: Wednesday, August 23, 2000 1:11 PM
Subject: [Zope] Including a method returning batches inside a page.


> 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
>
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )