 |

cjamieson
User
Mar 11, 2003, 10:35 AM
Post #1 of 7
(2215 views)
Shortcut
|
|
Rental and Sale Listings
|
Can't Post
|
|
Hi, I hope that you can help as I'm having trouble with setting up 2 different lisitings pages. I'm trying to follow the example in the documentation but when I click on the link to either my Rental or Sale page I get the message: Invalid template name: '_rent_result.html' I've copied the _search_results.html file and renamed to _rent_result.html and _sale_result.html and placed them in the template directory. Any ideas what I've done wrong?? Craig
|
|
|  |
 |

Benjamin
Staff

Mar 11, 2003, 6:31 PM
Post #2 of 7
(2207 views)
Shortcut
|
|
Re: [cjamieson] Rental and Sale Listings
[In reply to]
|
Can't Post
|
|
Hi Craig, This is probably due to either of these: 1. double check it's in the right directory (/templates) (the program just assumes it is, then gives the error message you saw if it can't find it). 2. the file doesn't have read-access. Make sure it's set to 644 (Unix). By the sounds of it, it's most likely the second problem. Post me back! :-) Ben interactivetools.com
|
|
|  |
 |

cjamieson
User
Mar 12, 2003, 9:53 AM
Post #3 of 7
(2188 views)
Shortcut
|
|
Re: [Benjamin] Rental and Sale Listings
[In reply to]
|
Can't Post
|
|
Ben, I've check that the files are in templates and are also set to 644. I've added this piece of code to the _publish_listing_index.html: <a href="$search_url$?search=1&lfield30='rental'&template='_rent_result.html'">View Rentals</a> <a href="$search_url$?search=1&lfield30='sale'&template='_sale_result.html'">View Sales</a> In field 30 I have set active and active and as a dropdown box with rental and sale as the values. I have at least one property listed as sale. Any more ideas?? Craig
|
|
|  |
 |

Benjamin
Staff

Mar 12, 2003, 11:02 AM
Post #4 of 7
(2181 views)
Shortcut
|
|
Re: [cjamieson] Rental and Sale Listings
[In reply to]
|
Can't Post
|
|
Hi Craig, Hmmm... Your queries look pretty good, but try changing those two lines to this: <a href="$search_url$?search=1&lfield30=rental&template=_rent_result.html">View Rentals</a> <a href="$search_url$?search=1&lfield30=sale&template=_sale_result.html">View Sales</a> (Just remove those extra apostrophes) post me back! Ben interactivetools.com
|
|
|  |
 |

cjamieson
User
Mar 12, 2003, 11:20 PM
Post #5 of 7
(2152 views)
Shortcut
|
|
Re: [Benjamin] Rental and Sale Listings
[In reply to]
|
Can't Post
|
|
Ben, Thanks that worked, now when I clcik on View Sales it shows me search results correctly, but I only have one property and it's set-up as a "sale", when I click on View Rentals I see this property as well?? The links I used were straight from http://www.interactivetools.com/docs/realtymanager/ on the Search Engine Template page, may be you should amend this. What else do I need to do? Thanks Craig P.S. Sorry for the delay in getting back to you but I'm in the UK!
|
|
|  |
 |

Benjamin
Staff

Mar 13, 2003, 2:16 PM
Post #6 of 7
(2127 views)
Shortcut
|
|
Re: [cjamieson] Rental and Sale Listings
[In reply to]
|
Can't Post
|
|
Hi Craig, Oops! I missed something. Change the links to this: <a href="$search_url$?search=1&lfield30_match=rental&template=_rent_result.html">View Rentals</a> <a href="$search_url$?search=1&lfield30_match=sale&template=_sale_result.html">View Sales</a> - Just tack on "_match" after "lfield30". This tells the search engine to only return those listings where the EXACT text of listing field 30 is "rental" or "sale". Give that a go, and it should fix things. Sorry about that. Ben interactivetools.com
|
|
|  |
 |

cjamieson
User
Mar 13, 2003, 11:23 PM
Post #7 of 7
(2119 views)
Shortcut
|
|
Re: [Benjamin] Rental and Sale Listings
[In reply to]
|
Can't Post
|
|
Thanks Ben that's fixed it.
|
|
|  |
|