[Zope] Including a method returning batches inside a page.
Dieter Maurer
dieter@handshake.de
Thu, 24 Aug 2000 00:32:45 +0200 (CEST)
Jean Jordaan writes:
> 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>">
"document_id" is the id of the executing DTML objects.
For a DTML method(!), "id" is the id of the object of which
the method is used as a method.
In your case, this is the folder.
In some cases, you would use "this().id".
This gives you the id of the "top level" DTML object.
In your case, this would be "index_html".
Dieter