Akopia Akopia Services

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

Re: [mv] Search with matchlimit and paging.



******    message to minivend-users from Ed LaFrance <edl@newmediaems.com>     ******

At 12:49 PM 6/15/00 +0200, you wrote:
>******    message to minivend-users from Andreas Rabus 
><andreas@ampersand.de>     ******
>
>
>Hi,
>
>if i do s.th. like this:
>[more]...[/more]
>[serach-region send=1]
>[search-list]
>[sort products:code:rf]
>
>the results are sorted on everey page as given in the sort, but the sorting
>from pages to page is random.
>I.e.  "6 4 2" on page 1and  "5 3 1" on page 2.
>How to get the expeted reuslt "6 5 4" on page 1 and "3 2 1" on page 2?

Use mv_sort_field and mv_sort_option  (ts and tf in one-click searches, I 
think - check the docs) in your search spec instead of [sort] on the 
results page.  The entire results will be sorted as a unit, even across 
multiple results pages when using [more].  One word of warning: to get it 
to work, I have always had to specify "0" (the column number for the code 
field) as the last value of mv_sort_field:

<input type=hidden name=mv_sort_field value="category,0">

Good luck!

- Ed L.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| New Media E.M.S.             Software Solutions for Business |
| 12831 Blanco Ct.             Consulting                      |
| Poway, CA  92064  U.S.A.     Custom Programming              |
| 858-486-6508                 Internet and eCommerce          |
| 630-604-4265 eFax                                            |
| edl@newmediaems.com                                          |
| http://www.newmediaems.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


Search for: Match: Format: Sort by: