Fw: [Zope-CMF] Finding more than one type with portal catalog
Zopista
zopista@zopezen.org
Tue, 25 Sep 2001 07:56:17 -0700
----- Original Message -----
From: "Zopista" <zopista@zopezen.org>
To: "Gitte Wange" <gitte@mmmanager.org>; <zope-cmf@zope.org>
Sent: Tuesday, September 25, 2001 7:45 AM
Subject: Re: [Zope-CMF] Finding more than one type with portal catalog
> Pass a list.
>
> <dtml-let
> types="['Link','Quote', 'Book']"
> d="_.DateTime()-3"
> res="portal_catalog.searchResults( Type=types
> , sort_on='Date'
> , sort_order='reverse'
> , review_state='published'
> , created = d
> , created_usage = 'range:min'
> )">
>
> Heres new stuff in the last 3 days of type link, quote or book. See
ZopeZen
> top right hand corner for it action :)
>
> ----- Original Message -----
> From: "Gitte Wange" <gitte@mmmanager.org>
> To: <zope-cmf@zope.org>
> Sent: Tuesday, September 25, 2001 2:10 AM
> Subject: [Zope-CMF] Finding more than one type with portal catalog
>
>
> > 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 ???
> >
> > TIA,
> > Gitte Wange
> >
> > _______________________________________________
> > Zope-CMF maillist - Zope-CMF@zope.org
> > http://lists.zope.org/mailman/listinfo/zope-cmf
> >
> > See http://www.zope.org/Products/PTK/Tracker for bug reports and feature
> requests
> >
>