>A presumably simple question:
>
>Is there an easy way to count the number of occurences of a certain meta
>type in a Catalog? E.g: I want a dtml snippet that outputs:
>
>There are 123 DTML Documents in the Catalog.
>
>I've browsed the howto's, but didn't find anything like this. Can anybody
>offer me some assistance?
>
>

To quote a mail by RD Murray from a gew days ago:

 How do I find the size of the results returned by the catalog?
 <dtml-let results=Catalog(....)>
 <dtml-var "_.len(results)"> <-- the results' length -->
 </dtml-let>

Also at the zdp site:

http://zdp.zope.org/projects/zsnippet/snippets/DTMLContent/CatalogResLength

Rik


_______________________________________________
Zope maillist  -  [EMAIL PROTECTED]
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 )

Reply via email to