 |

deepadev
User
Oct 5, 2005, 6:45 AM
Post #1 of 5
(1964 views)
Shortcut
|
|
showing newest listings on top
|
Can't Post
|
|
Hi guys, I understand there's the sort order that can be customized using the sort_order hidden field. Adding on to that - say i have a field for Date - a text field, say lfield21. So dates could be added in any format ( 10-4-2005, 4 Oct 2005 , 4-10-2005 etc) and say my shownew, marknew are enabled, if I give sort_order="lfield21,123,reverse" - will this show newest listings on top ? if not , what is the right sort order ? basically - the date field is not strictly numerical - how would sort_order="lfield21,abc,reverse" work ? in what order would it show results ? thanks in advance , Deepa
|
|
|  |
 |

ross
Staff
/ Moderator

Oct 5, 2005, 3:52 PM
Post #2 of 5
(1950 views)
Shortcut
|
|
Re: [deepadev] showing newest listings on top
[In reply to]
|
Can't Post
|
|
Hi Deepa. Thanks for posting and welcome to the board! For the sort order to work properly, you’ll need to have the dates entered in the same format. In the case of date though, there is already a date field in Listings Manager that you can sort on. Adding this field to your search pages:
<input type="hidden" name="sort_order" value="-11,123,reverse"> That will have your listings ordered by the date they were created from highest to lowest. Does that sound like it would work? Let me know if you need anymore details . ----------------------------------------------------------- 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.
|
|
|  |
 |

deepadev
User
Oct 5, 2005, 10:24 PM
Post #3 of 5
(1945 views)
Shortcut
|
|
Re: [ross] showing newest listings on top
[In reply to]
|
Can't Post
|
|
Hi Ross, thanks for the post - I added the sort_order with the "-11" - it worked. just a suggestion - you guys could probably add this to the documentation , since its a popluar requirement for newest results to show up first. Thanks again, Deepa
|
|
|  |
 |

Poster22
New User
Nov 29, 2006, 11:29 AM
Post #4 of 5
(1016 views)
Shortcut
|
|
Re: [deepadev] showing newest listings on top
[In reply to]
|
Can't Post
|
|
Just to clarify, this is for the search tool's listing order or for all listings from the moment you enter the LM? This appears to be for the default search result order, which is certainly useful, but I'd like to do this on the initial listings of LM posts -- showing the newest first instead of listing them alphabetically which appears to be the default. Thanks.
|
|
|  |
 |

davidrat
User
Mar 28, 2008, 4:30 AM
Post #5 of 5
(594 views)
Shortcut
|
|
Re: [Poster22] showing newest listings on top
[In reply to]
|
Can't Post
|
|
In case anyone else is still wondering about this, I have a "Newly Listed" link on my site. The html is below: <a href="/listman/exec/search.cgi?search=1&marknew=7&euro_numbers=0&shownew=14&sort_order=-11,123,reverse" class="Nav">Newly Listed</a>
|
|
|  |
|