[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
RE: loop counter
****** message to minivend-users from "Thompson-Jordan" <Thompson-Jordan@mindspring.com> ******
Look at [item-increment] or [loop-increment].
Here is a skeleton for two column code. Change the 2 in the [calc] to the
number of columns you want. You can change the [loop] to a [search-list]
and [loop-...] to [item-...] for a results page.
<table width="430">
<tr>
[loop arg="[item-field myfield]"]
<td
*** code for table cell ***
</td>
[calc]return '
</TR>
<TR>
' if '[loop-increment]' % 2 eq 0[/calc]
[/loop]
</tr>
</table>
Christopher Thompson
> -----Original Message-----
> From: owner-minivend-users@minivend.com
> [mailto:owner-minivend-users@minivend.com]On Behalf Of mike bloom
> Sent: Wednesday, May 19, 1999 3:48 PM
> To: minivend-users@minivend.com
> Subject: loop counter
>
>
> ****** message to minivend-users from mike bloom
> <mike@gomi.com> ******
>
> Does anyone have an easy way of implimenting a counter inside of a
> search list ? I want to format a table into a two up or three up
> format, ie: every two or three returned items , stick in a </tr> .
>
>
>
> -
> To unsubscribe from the list, DO NOT REPLY to this message.
> Instead, send
> email with 'UNSUBSCRIBE minivend-users' in the body to
> Majordomo@minivend.com.
> Archive of past messages: http://www.minivend.com/minivend/minivend-list
>
-
To unsubscribe from the list, DO NOT REPLY to this message. Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list