[ic] alternating within a loop (to make a table)
Sergei Voyakin
svoyakin at hotmail.com
Tue Jul 27 09:05:40 EDT 2004
I wanted to list all product groups in a 2 column table but can't figure out
how to use alternate tag to close the <tr> tag. I found the following
example, but it seems to only work with the search-list tag?
[search-region]
[search-list]
<td>
<a href="[area [item-code]]">
<img src="thumb/[item-field thumb]" border="0">
</a>
</td>
[item-alternate 3]
</tr>
[else] [/else]
[/item-alternate]
[/search-list]
[/search-region]
Here is what I'm trying to do (maybe I am doing it the wrong way?)
[query sql="select distinct prod_group from products"
type=list
]
[list]
[list-alternate 2]
Every 2nd one<br>
[else]Other<Br> [/else]
[/list-alternate]
[/list]
[/query]
Thanks for any suggestions.
_________________________________________________________________
Is your PC infected? Get a FREE online computer virus scan from McAfee®
Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
More information about the interchange-users
mailing list