[Zope] Size limit
Dieter Maurer
dieter@handshake.de
Fri, 28 Sep 2001 00:37:21 +0200 (CEST)
Todd Loomis writes:
> I'm using the code below to pull news articles out of a folder, I only want
> the first 5 the meet the if statement. But I pulling all how can I do this?
>
> <dtml-var standard_html_header>
> <dtml-with "news">
> <dtml-in "objectValues('News')" sort=display_order size=5>
> <dtml-if expr="end_date > ZopeTime() and start_date <= ZopeTime()">
Use "ZopeFind" rather than "objectValues" to get an filter
the objects....
Dieter