[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: AW: [mv] [more-list] possibilities
****** message to minivend-users from jojo@buchonline.net ******
On 6 Jul, Markus Müller (ASS Software Odw.) wrote:
> ****** message to minivend-users from "=?iso-8859-1?Q?Markus_M=FCller_=28ASS_Software_Odw.=29?=" <mueller@ass-software.de> ******
>
>
>> > 2.) Is it possible to display only a number of results and
>> > not all of them?
>>
>> Do you mean " [matches]" only?
>
> I mean the follwing:
>
> There are 200 search results. I only want the first 50 to be visible.
> If mv_matchlimit is set to 10 the display should look like
>
> Back 1 2 3 4 5 Next
Instead of
Back 1 2 3 4 5 6 7 8 9 10 11 12 .... 20 Next
?
>
> The other 150 results are not important...
Hmmm...mv_max_matches seems to me, work only with glimpse!
Maybe, this diff can helps you:
---------snip-----------
--- Interpolate.pm.sic Thu Sep 9 15:28:18 1999
+++ Interpolate.pm Wed Jun 7 15:06:11 2000
@@ -3078,7 +3078,16 @@
}
my $pa;
- foreach $inc (1..$pages) {
+
+#jojo
+ my $start1 = 1;
+ while ($current >= ($start1 + 5)){$start1 = $start1 + 5;}
+ my $end1 = $start1 + 4;
+ if($start1 <= 0){$start1 = 1;}
+#jojo
+
+ foreach $inc ($start1..$end1) {
+# foreach $inc (1..$pages) {
last if $page_anchor eq 'none';
$pa = $page_anchor;
$pa =~ s/__PAGE__/$inc/g;
---------snip-----------
Joachim
--
Hans-Joachim Leidinger
buch online jojo@buchonline.net
Munscheidstr. 14 FAX: +49 209 1671449
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