 |

CarlitosWay
Novice
Oct 1, 2006, 8:53 PM
Post #1 of 6
(2720 views)
Shortcut
|
|
Search results order
|
Can't Post
|
|
Any way to manipulate the order in which the listing are presented? Per instance from the newest to the oldest. Thanks
|
|
|  |
 |

ross
Staff
/ Moderator

Oct 2, 2006, 8:59 AM
Post #2 of 6
(2707 views)
Shortcut
|
|
Re: [CarlitosWay] Search results order
[In reply to]
|
Can't Post
|
|
Hi there. Thanks for posting! There is actually a way to change the sort order on your search results. There are two ways to do it depending on how your search results are coming up. If you are going from a search form to the results, just add the following element to your form: <input type=”hidden” name=”sort_order” value=”7,123,forward”> If you are using a link to the search results, just add in “&sort_order=7,123,forward” a the end of the URL like this: <a href=/cgi-bin/listman/exec/search.cgi?search=1&sort_order=7,123,forward> Now, there are a couple things to change or adjust. Here’s a breakdown of what each piece in the sort_order means: 7 => this is the listing field that the sort is based on. In your specific example (sorting by date) you’ll actually be using a special field -11, but it is usually a number between 1 and 75. 123 => this tells you what kind of sort will happen. 123 is numerical and abc is for alphabetical. In your example, you can leave this as 123. forward => this says to sort from low to high. That other option is reverse which is high to low. You’ll actually want to use reverse. And that should be it. Give this a shot and let me know how you make out . ----------------------------------------------------------- Cheers, Ross Fairbairn - Product Specialist support@interactivetools.com
Hire me! Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.
|
|
|  |
 |

CarlitosWay
Novice
Oct 9, 2006, 11:01 PM
Post #3 of 6
(2691 views)
Shortcut
|
|
Re: [ross] Search results order
[In reply to]
|
Can't Post
|
|
Just a question: 7 => this is the listing field that the sort is based on. In your specific example (sorting by date) you’ll actually be using a special field -11, but it is usually a number between 1 and 75. Do I need to create an insertion date lbfield on the database in order to sort? is there any way to make it automatic? or any contribution that records the date the listing was added Thanks
|
|
|  |
 |

Donna
Staff
/ Moderator

Oct 10, 2006, 4:50 PM
Post #4 of 6
(2683 views)
Shortcut
|
|
Re: [CarlitosWay] Search results order
[In reply to]
|
Can't Post
|
|
Hi there, The reason you're using -11 is because it's an existing field. So, no additional field is necessary to be created, this will force it to use the internal field. :) Donna
Hire me! Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.
|
|
|  |
 | |  |
 |

Donna
Staff
/ Moderator

Oct 31, 2006, 2:54 PM
Post #6 of 6
(2581 views)
Shortcut
|
|
Re: [webbuilder] Search results order
[In reply to]
|
Can't Post
|
|
Hi webbuilder. :) You've got one extra character in there -- the sort order code should be: &sort_order=18,abc,forward Rather than &sort_order=18,1,abc,forward Also, you've got some extra code that isn't valid -- I'm assuming that the 1€_numbers=0 is intended to switch it to european numbering? If so, you'll actually want euro_numbers=1, rather than the actual Euro symbol -- Listings Manager won't recognize that. If you weren't intending to turn European numbering on (since "0" indicates "off", whereas "1" indicates "on", you can simply leave it out. So, try the following query instead: http://www.parkside-properties.co.nz/wlm/exec/search.cgi?search=1&sort_order=18,abc,forward&marknew=1&lfield70_keyword=Future Is that sorting more like what you're looking for? Donna
Hire me! Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.
|
|
|  |
 | |  |
|