[Zope] Count results of ZCatalog query
Juergen R. Plasser / Hexagon
plasser@hexagon.at
Fri, 14 Jun 2002 12:49:34 +0200
I am having a form based search here and the results page starts like
<dtml-in Catalog size=20 start=query_start>, so I thought I could easily
determine the length of "Catalog".
I have tried <dtml-var "_.len(Catalog(REQUEST))"> and it seems to work ;-)
Juergen
--On Freitag, 14. Juni 2002 06:39 -0400 Andreas Jung
<andreas@andreas-jung.com> wrote:
> Why do you expect that your approach gives you the number
> of results of a query when you don't specify the query? ;-)
>
> Try <dtml-var "_.len(Catalog(field1=...,field2=...))">
>
> -aj