[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
[ic] rearanging the results page [item-alternate]
> Thanks for the advice to use item-alternate.. just one more
> question.. I've got
> the following code in the page now and it works except for on the
> first row it
> only returns 4 items and the last row returns only 1 item.. what
> am i doing
> wrong?
>
> [search-list]
> [item-alternate 5]</tr><tr><td>[else]<td>[/else][/item-alternate]
>
>
> <div align="center"><a href="[area [item-code]]"><img border="0"
> src="thumb/
> [item-code]_s.jpg"></a> <br>
>
> <INPUT TYPE=hidden NAME="mv_order_item" VALUE="[item-code]">
> <a href="[area [item-code]]">[item-description]</a><br>
>
> [item-code]<br>
>
> [item-price]
> </div>
>
> [/search-list]
>
> thanks,
>
> Ian Jennings
Try something like this:
<table>
<tr>
[search-list]
<td align="center">
<a href="[area [item-code]]"><img border="0"
src="thumb/[item-code]_s.jpg"></a> <br>
<INPUT TYPE=hidden NAME="mv_order_item" VALUE="[item-code]">
<a href="[area [item-code]]">[item-description]</a><br>
[item-code]<br>
[item-price]
</td>
[item-alternate 5]</tr><tr>[else][/else][/item-alternate]
[/search-list]
[on-match]
</tr>
[/on-match]
</table>
If it is a simple implementation, the table-organize tag will work. I find
item-alternate more extensible.
HTH Paul