[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: [mv] search list output formatting
****** message to minivend-users from Marty Vance <mvance@lwm.com> ******
Chris Daniel wrote:
> ****** message to minivend-users from Chris Daniel <krskrem@speedfactory.net> ******
>
> Hello,
> Well, I can get it to display items vertically or horizontally , but I
> am also desirous of outputting the display in a table like yours.
> My ideal is to do it in 4 by 5.
> I can output 5 items in one column, i think that if i can know how to
> tell minivend to begin a new column after a prescribed amount this might
> be the best.
> [|||]
> [|||]
> [|||]
> [|||]
> [|||]
> or 4 items in a row
> [|||][|||][|||][|||]
> Same thing.
> I found references to some kinda high performance tag, to be implemented
> in 3.15 , which may or not be in 4.0, cause I don't think there is a
> 3.15, who knows , I'm just a fan :)
> http://www.minivend.com/minivend/minivend-list/1999/msg05526.html
> References are here
> http://www.minivend.com/minivend/minivend-list/1999/msg05519.html
> tried this way, but it did not really work, or I did not do it right.
> If you get it to work somehow , please share, I am still attempting to
> figure this one out.
> Chris
> ________________________________________________
> I finally got my [more list] think to work. My search has
> mv_matchlimit=6.
> how do I format the output so that the data for each item is displayed
> in a table of
> 2 rows, 3 columns? All the data for each item needs to be in one cell.
> (the entire table is 6 cells), as in
> [=][=][=]
> [=][=][=]
>
> Any ideas?
>
> -
> To unsubscribe from the list, DO NOT REPLY to this message. Instead, send
> email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
> Archive of past messages: http://www.minivend.com/minivend/minivend-list
I figured it out, so here's the solution I came up with. Your [if] will be hairier since you
need more than two rows.
[set name="tablebreak"]1[/set]
<table border="0">
<tr>
[search-list]
<td>
[item-code]
</td>
[if type=scratch term=tablebreak op="=~" compare="/3/"]
[then]
</tr><tr>
[/then]
[/if]
[set name="tablebreak" interpolate=1][calc][scratch tablebreak] + 1[/calc][/set]
[/search-list]
</tr></table>
Marty Vance
LiveWire
mvance@lwm.com
www.lwm.com
-
To unsubscribe from the list, DO NOT REPLY to this message. Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list