 |

jamess
Novice
Apr 18, 2003, 5:20 AM
Post #1 of 11
(5699 views)
Shortcut
|
|
Adjustable Listings Viewed per Page
|
Can't Post
|
|
Hello, I was wondering if there was a way of placing a drop box on the search template to allow the viewer to select how many listings they would like to view per page ( I know that I can set in the program, but I need the viewer to make the choice) If the viewer has DSL or Cable, they may want to view all the listings on 1 page, however if they have a dial up connection, they may only want to view 5 at a time. Also is it possible to make a search results template to view 2 columns of results (I tried but got the same listing in each area) If I'm doing something wrong, please let me know. Thanks, James One more question, how do I get the newest listings to display first (I had an idea to put a todays date in as a listing field, but I dont know how to make that field the primary sort) Thanks again, James
(This post was edited by jamess on Apr 18, 2003, 12:18 PM)
|
|
|  |
 |

Mike R
Staff

Apr 18, 2003, 5:21 PM
Post #2 of 11
(5680 views)
Shortcut
|
|
Re: [jamess] Adjustable Listings Viewed per Page
[In reply to]
|
Can't Post
|
|
Hi James,
I was wondering if there was a way of placing a drop box on the search template to allow the viewer to select how many listings they would like to view per page There is a hidden form field in the _search_query.html template that looks like this: <input type="hidden" name="perpage" value="10"> That controls how many listings are displayed on the results page. If you want the user be able to select how many results are displayed on the page, you would have to create the dropdown menu, which would look something like this: <tr> <td>Results Per Page</td> <td><select name="perpage"> <option>5 <option>10 <option>15 </select> </td> </tr> You would remove the hidden field from the top of the template, and add that code into the template wherever you want the dropdown menu to appear, and change the vaules to whatever values you want to be available to the user.
Also is it possible to make a search results template to view 2 columns of results Unfortunately, that isn't something that is supported by default in Realty Manager.
One more question, how do I get the newest listings to display first Although there isn't a specific feature in Realty Manager that allows you to do this, with the search engine, the user can select to search only the listing that have been added in the last "x" number of days. This would make it possible for site visitors to choose to see only the newest listings (for example to view only the listings that had been added in the past days). Both of your suggestions are good ones though, and I like the idea of being able to sort listings by date. I'm going to take note of these and pass them on to the developers. I hope this helps, and please let me know if you have any further questions. :) Mike Roulston interactivetools.com
|
|
|  |
 |

Benjamin
Staff

Apr 21, 2003, 1:29 PM
Post #3 of 11
(5618 views)
Shortcut
|
|
Re: [Mike R] Adjustable Listings Viewed per Page
[In reply to]
|
Can't Post
|
|
Hey James, Mike is quite right - Realty Manager doesn't come with the option for publishing in columns. So what I've done is rustle up a javascript-ridden page that allows for this. This will print out your search results listings like this: 1 2 3 4 5 6 7 Here's a couple of screenshots to give you a better idea. 1. JavaScript-enabled browsers, 2. JavaScript-disabled browsers. In the attached template (_search_results_columns.html), I've wrapped all newly added (and removed) code in <!-- comment tags -->, so if you need to apply this code to your own pages, hopefully that'll lend a hand identifying which bits you'll need to tamper with. I've also added some comments at the top of the file, explaining what it does and how it works. Hope this helps! Ben interactivetools.com
(This post was edited by Benjamin on Apr 23, 2003, 3:48 PM)
|
|
Attachments:
|
_search_results_columns.html
(13.5 KB)
|
|
|  |
 |

jamess
Novice
Apr 21, 2003, 9:25 PM
Post #4 of 11
(5599 views)
Shortcut
|
|
Re: [Benjamin] Adjustable Listings Viewed per Page
[In reply to]
|
Can't Post
|
|
Hi Benjamin and Mike, Your fantastic! Thanks for a great little script! Support given by all at Interactivetools is simply the best you can get on the Internet! Thanks again, James
(This post was edited by jamess on Apr 21, 2003, 9:26 PM)
|
|
|  |
 |

jamess
Novice
Apr 23, 2003, 2:35 PM
Post #5 of 11
(5556 views)
Shortcut
|
|
Re: [jamess] Adjustable Listings Viewed per Page
[In reply to]
|
Can't Post
|
|
Hi All, I tried uploading the page "as is" the only thing I changed was the name to: _search_results.html but my page will not display 2 columns as yours shows. It looks standard. I'm using IE 6.0 java enabled. Any Ideas? Thanks, James
|
|
|  |
 |

Benjamin
Staff

Apr 23, 2003, 3:01 PM
Post #6 of 11
(5540 views)
Shortcut
|
|
Re: [jamess] Adjustable Listings Viewed per Page
[In reply to]
|
Can't Post
|
|
Hey James, That's interesting! I checked over the page, and it seems fine. It sounds rather like your browser isn't javascript enabled, I must say... could you post the URL so I could take a look? Thanks! :-) Ben interactivetools.com
|
|
|  |
 |

Benjamin
Staff

Apr 23, 2003, 3:49 PM
Post #8 of 11
(5526 views)
Shortcut
|
|
Re: [jamess] Adjustable Listings Viewed per Page
[In reply to]
|
Can't Post
|
|
Hey James, Try downloading the file again - I'd managed to upload an older version, which is minus a rather important couple of lines of code. Sorry about that. Just for the record, I'm reading up on CVS later today. ;-) Ben interactivetools.com
|
|
|  |
 |

jamess
Novice
Apr 23, 2003, 3:55 PM
Post #9 of 11
(5522 views)
Shortcut
|
|
Re: [Benjamin] Adjustable Listings Viewed per Page
[In reply to]
|
Can't Post
|
|
Hi Ben, That works GREAT! Thanks, James
|
|
|  |
 |

designby5
Novice
Aug 5, 2004, 1:09 PM
Post #10 of 11
(4846 views)
Shortcut
|
|
Re: [Benjamin] Adjustable Listings Viewed per Page
[In reply to]
|
Can't Post
|
|
Ben, You rock! What adjustment do I have to make to make it display in 3 columns? I'm trying to make a "Printable Flyer" version of a customized search results page with just the picture, price, bed and bath info. Thanks, Tony Watson Design By 5, Inc.
|
|
|  |
 |

Luke
Staff
/ Moderator

Aug 5, 2004, 3:58 PM
Post #11 of 11
(4842 views)
Shortcut
|
|
Re: [designby5] Adjustable Listings Viewed per Page
[In reply to]
|
Can't Post
|
|
Hi Tony, Thanks for posting! :) Unfortunately Ben's no longer with us. I'm not a JavaScript pro myself, but maybe someone else in the forum can post some suggestions? Luke Holzken Product Development
|
|
|  |
|