[ic] rearanging the results page [item-alternate]

Bill Carr interchange-users@interchange.redhat.com
Thu May 30 14:17:00 2002


On Thu, 2002-05-30 at 13:48, Paul Jordan wrote:
> > 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
> 
> _______________________________________________
> interchange-users mailing list
> interchange-users@interchange.redhat.com
> http://interchange.redhat.com/mailman/listinfo/interchange-users
> 
Another way
[table-organize cols=5 columnize=1] 
[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>
[/search-list]
[/table-organize] 

-- 
Bill Carr
Worldwide Impact
bill@worldwideimpact.com
413-253-6700