[Zope] Size limit

Todd Loomis tloomis@dmso.mil
Wed, 26 Sep 2001 15:53:15 -0400


All:

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()">
<b><dtml-var title></b><br>
<dtml-var abstract><br>
<a href="news/<dtml-var id>">FULL STORY</a><p>
</dtml-if>
</dtml-in>
</dtml-with>
<dtml-var standard_html_footer>

Thanks,
Todd

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Todd Loomis
Web Developer (SAIC)
Defense Modeling & Simulation Office
1901 N. Beauregard Street, Suite 500
Alexandria, VA 22311
Office: 703.824.3407 Fax: 703.379.3778
tloomis@dmso.mil