Exactly how is it not working? Without knowing that, I'll guess that you might be seeing the effects of the default orphan setting of 3, which prevents there from being a "left over" batch of less than 3. So if you only have 4 objects, setting size=2 will still cause all 4 to be returned. To force it to return your size, set orphan=0. <dtml-in "objectValues('Spam and Eggs')" size=2 orphan=0> ... _______________________ Ron Bickers Logic Etc, Inc. rbickers@logicetc.com
-----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Timothy Wilson Sent: Monday, January 15, 2001 11:56 PM To: Zope listserv Subject: [Zope] How to display only x records with <dtml-in>
Hey everyone,
I've got a method to display some text which uses <dtml-in "objectValues(['Spam and Eggs'])"> to iterate through a bunch of "Spam and Eggs" ZClass instances. I thought that I could use size="2" in the <dtml-in> to display only the first two instances, but it's not working. I want to display only the first two and use a link at the bottom to direct people to see the rest on a separate page. Any ideas?