[ic] How to Sort Items by certain field

Ed LaFrance edl at newmediaems.com
Tue Nov 18 09:56:50 EST 2003

At 01:10 AM 11/18/2003 -0500, you wrote:
>On Monday 17 November 2003 22:34, Matthew Villa wrote:
> > On some product list pages I want to sort by a certain column such as
> > price or by title. How do I do that?
>  I'm going to assume you're using the product listing method that comes with
>the Foundation catalog and the "Vertical Category" component.
>  There's two ways. The first and best is to add "tf=column_name" (or
>"mv_sort_field=column_name" in the long format) in the search definition. You
>could do that by editing the link that summons the product listing.
>  The other way is slower, but can be done from inside the results.html page.
>Add [sort products:column_name:f] just after the [search-list] tag.

Bear in mind that, with the second method, the scope of the sort is limited 
to the current page of products vs. the entire range of search results. So 
if the search results span several pages, you probably won't be happy with 
this technique.

- Ed L.

New Media E.M.S.              Technology Solutions for Business
11630 Fair Oaks Blvd., #250   eCommerce | Consulting | Hosting
Fair Oaks, CA  95628          edl at newmediaems.com
(916) 961-0446                http://www.newmediaems.com
(866) 519-4680 Toll-Free      (916) 961-0447 Fax

More information about the interchange-users mailing list