Home | Products | Consulting | Hosting | Forums | Support | Order | 1-800-752-0455
  Main
Index
Search
Posts
Who's
Online
Log
In

Home: Products: Listings Manager (Realty Manager & Auto Manager):
showing newest listings on top

 

 


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 Smile ,

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:


Code
<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 Smile.
-----------------------------------------------------------
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&amp;marknew=7&amp;euro_numbers=0&amp;shownew=14&amp;sort_order=-11,123,reverse"
class="Nav">Newly Listed</a>

 
 
 


Search for (options)
Products
CMS Builder
Article Manager
Realty Manager
Listings Manager
Order Now
Services
Priority Consulting
Hosting
Support
Online Documentation
Support Forums
Support Homepage
Company Info
12 reasons to choose us!
Meet the team
Monthly newsletter
Contact Us
Toll Free: 1-800-752-0455
Phone: (604) 689-3347
Sales | Support
Conditions of Use | Privacy Policy | Copyright © interactivetools.com 2008
#201 - 2730 Commercial Drive, Vancouver BC Canada V5N 5P4