[Zope-CMF] Finding more than one type with portal catalog

Tres Seaver tseaver@palladion.com
Tue, 25 Sep 2001 09:02:10 -0400 (EDT)


On Tue, 25 Sep 2001, Gitte Wange wrote:

> Hello,
> 
> How do you find more than one meta_type in a portal_catalog query ??
> 
> I want to make a box that could display the 5 newest documents and news ... 
> so I need 1 query. But how do I do that ???

Try:

  <dtml-in expr="portal_catalog.searchResults( Type=( 'Document'
                                                    , 'NewsItem'
                                                    ), ... )">

-- 
===============================================================
Tres Seaver                                tseaver@zope.com
Zope Corporation      "Zope Dealers"       http://www.zope.com