[ic] Displaying Items in Rows

Ton Verhagen interchange-users@interchange.redhat.com
Mon Dec 24 04:37:00 2001


At 04:25 AM 12/23/01 -0500, Cameron wrote:
[snip]

>I don't want the 6 products to be displayed one after another in a
>vertical manner however.  I want them to be in rows of 3, with up to 9
>products per page.  I've searched through the list archives, and played
>around with the table-organize tag to display the options as I wanted.
>I don't see where I could start to start placing the items into a
>table-organize tag.
[snip]

It's all in the docs and in the pages that come with IC!
Docs: http://interchange.redhat.com/cgi-bin/ic/docfly.html?mv_arg=ictags06%2e20

But, hey, it's almost Christmas:)

Cameron, Have a look at the code below.
You can see this code in action at:
http://www.verhagen.net/cgi-bin/tools/table-organize.html


<table cellpadding=0 cellspacing=0 width="80%">

[table-organize
             cols=3
             rows=3
             pretty=1
             tr.0='bgcolor="#EEEEEE"'
             tr.1='bgcolor="#FFFFFF"'
             td.0='align=right'
             td.1='align=center'
             td.2='align=left'
             embed=lc
             ]
           [loop search="fi=products/st=db/ra=yes/ml=9" more=1]
             <td>
                   <TABLE border=1 width=90%>
                     <TR><TD><b>[loop-code]</b></TD></TR>
                     <TR><TD>[loop-description]</TD></TR>
                     <TR><TD align=right>[loop-price]</TD></TR>
                 </TABLE>
             </td>
             [more-list][more][/more-list]
           [/loop]
         [/table-organize]

</table>

Of course you have to change the code a little for a search page. I leave 
that to you as an exercise.

Good luck, and Merry Xmass.


Best
         Ton