[Zope] dtml-in question
James W. Howe
jwh@allencreek.com
Wed, 16 Feb 2000 15:07:42 -0500
At 09:28 AM 2/16/00 +0100, Cornelis J. de Brabander wrote:
> > James W. Howe wrote...
> > 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.
I tried using your suggestion and I got 0 for the number of results
found. In fact, 3 results were found and displayed. My loop looks
basically like this:
<dtml-in ArchiveCatalog size=numRecsShow start=qs>
<dtml-if sequence-start>
<dtml-var count-nnn> documents found matching your query: ...
</dtml-if>
[...]
</dtml-in>
Am I overlooking something obvious?
Thanks.
James W. Howe mailto:jwh@allencreek.com
Allen Creek Software, Inc. pgpkey: http://ic.net/~jwh/pgpkey.html
Ann Arbor, MI 48103