Re: [Zope] dtml-in: number of items in current batch
Ron Bickers writes:
I can't seem to figure out what sequence- variable to use to get the number of items in the current batch. sequence-step-size gives me the size of the batch as I requested (ex, for <dtml-in ... size="3"> returns 3), but if there are actually only 2 more items to go, what can I use to get the number 2? What about the difference between "sequence-step-end-index" and "sequence-step-start-index"?
Perfect. It just doesn't get any easier than this. ;-) <dtml-var "_['sequence-step-end-index'] - _['sequence-step-start-index'] + 1"> Thanks! _______________________ Ron Bickers Logic Etc, Inc. rbickers@logicetc.com
-----Original Message----- From: Dieter Maurer [mailto:dieter@handshake.de] Sent: Wednesday, April 25, 2001 1:15 PM To: Ron Bickers Cc: zope@zope.org Subject: Re: [Zope] dtml-in: number of items in current batch
Ron Bickers writes:
I can't seem to figure out what sequence- variable to use to get the number of items in the current batch. sequence-step-size gives me the size of the batch as I requested (ex, for <dtml-in ... size="3"> returns 3), but if there are actually only 2 more items to go, what can I use to get the number 2? What about the difference between "sequence-step-end-index" and "sequence-step-start-index"?
participants (2)
-
Dieter Maurer -
Ron Bickers