Akopia Akopia Services

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

Re: [mv] Multiple Products on One page....



******    message to minivend-users from jojo@buchonline.net     ******

On 19 Mar, Tal Hart (TelNET) wrote:
> ******    message to minivend-users from "Tal Hart (TelNET)" <tal@telnet.co.il>     ******
> 
> The Idea is not to use MatchLimit=9 or similar,
> Imagine that you want a page to Display 5 Different products,
> but with different formating/design to each product...
> 
> Not as a list, or table...
> 
> how do i display product A , and than product A+1 etc..
> and how do i do <Next> to the appropriate Item #.

It is possible to do that. But displaying each products with different
design is a html question. With power of perl and MV, you can define a
conditions and test for this conditions to show each items with
different format.

A simple bad dirty example from my head:

If you want do display 10 items in each results page only, for example
123 items was found, set mv_matchlimit=10 and you get 10 items at once
and the link "next" to another 10 items and so on. And you can use

[set name="count" interpolate=1]0[/set]

[search-region send=1]
 
[more-list]
Matches [matches] of [if value mv_search_match_count > 1] [value mv_search_match_count] found.[/if]
[more][/more-list]

<!-- the more tag will display "next" and "previous" --->

[search-list]

[perl arg=scratch]
        $Safe{'scratch'}->{'count'} = $Safe{'scratch'}->{'icount'} + 1; 
        return '';
[/perl]

[if count == 1]
<-----any html format tags----->
[/if]

<!--- and regarding your previous email with 3 items in each row--->
[if count == 3]<BR>[elsif count == 6]<BR>[/elseif][/if]

<A HREF="[area [item-code]]"> <B>[item-field title]</B></A>
Our Price:                [item-price]

and so on

[/search-list]


Regards,

	Joachim



-- 
Hans-Joachim Leidinger
buch online                 jojo@buchonline.net
Munscheidstr. 14            FAX: +49 209 1971449
45886 Gelsenkirchen         FAX: 0209 1671449

-
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


Search for: Match: Format: Sort by: