[Zope] dtml-in question

Cornelis J. de Brabander brabander@fsw.LeidenUniv.nl
Wed, 16 Feb 2000 09:28:54 +0100


> -----Original Message-----
> From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of James
> W. Howe
> Sent: dinsdag 15 februari 2000 21:06
> To: zope@zope.org
> Subject: [Zope] dtml-in question
>
>
> I have a situation where I'm searching a catalog for items which meet a
> criteria.  The results are listed on one or more pages (using the
> batching
> feature of dtml-in).  What I want to be able to do, but don't know how to
> do, is get the total count of items found.  For example, when the first
> batch is displayed, I want to display a message which says something like
>
> xx results found.  1-10 displayed.
>
> How do I get the total number of items found from the search?

There are several predefined summary and other 'operators'. You want
probably:

<dtml-var count-nnn> results found,
<dtml-var sequence-step-start-index> - <dtml-var sequence-step-end-index>
displayed.

ZQR gives you more of these.

cb