MiniVend Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

Thanks! (Was Re: [mv] Result Page)



I just want to thank everyone for their time in helping me solve a very
annoying problem, how to output items 3 columns across on a table.  I'm
posting my solution below.  The key is to use [item-increment] in your
[calc] line, for example:

[calc] return '</TR><TR>' if '[item-increment]' % 3 eq 0[/calc]

Here's the complete [search-list] block that implements the above.  One
anomoly is that the layout will be disrupted by the [on-change] block,
because I'm displaying the movie category in a table row.  

<TABLE ALIGN="center" CELLPADDING="3">
<TR>
[search-list]
[sort products:title:f products:category:f products:rating:f products:price:n =1-[mv_s
earch_match_count]]
[on-change 1]
[condition][item-field category][/condition]
<TR>
<TD ALIGN="CENTER" VALIGN="top" BGCOLOR="Black" COLSPAN="3">
<FONT FACE="Helvetica,Arial" COLOR="White"><B>[item-field category]</B>
</TD></TR>
[/on-change 1]
        <TD VALIGN="top" ALIGN="center">
                <FONT SIZE="2" FACE="helvetica,verdana,arial">
                <B>[item-field title]</B>
                </FONT><BR>
                <FONT SIZE="2" FACE="helvetica,verdana,arial">
                MPAA Rating:
                <B><FONT SIZE="2" COLOR="#0000CC">
                [item-field rating]
                </FONT></B></A><P>
                </FONT>
                Our Price:</FONT><B><FONT SIZE="2" COLOR="#FF0000">
                [item-price]
                </B></FONT>
                &nbsp; <NOBR><A HREF="[area order [item-code]]" CLASS="buybtn">
                <FONT SIZE ="2" FACE="helvetica,verdana,arial" COLOR="#0000cc">
                <BR>Buy Now</FONT></A></NOBR><BR>
        </TD>
        [calc] return '</TR><TR>' if '[item-increment]' % 3 eq 0[/calc]
[/search-list]
</TABLE>

_________________________________________________________________________
Brian Wright                                   Aturna Communications Inc.
bdw@aturna.com                                          Internet Services
                                                WWW http://www.aturna.net
_________________________________________________________________________



Search for: Match: Format: Sort by: