 |

Carl
New User
Oct 4, 2002, 8:42 AM
Post #1 of 4
(2185 views)
Shortcut
|
|
Property Sales and Letting
|
Can't Post
|
|
Hi Guys As you are aware I am designing an Estate Agents site. And require two separate page searches, that is to say: 1. A site visitor either looking to Buy a Property or to Rent a Property they clcik on a link for "Property Sales" or "Property To Let". On doing so the visitor clicks for example on the "To Let" link. This then takes the visitor to a separate search page purely for "Property To Let". In turn the visitor has access only to "Property To Let". 2. Like wise a visitor only wants to "Buy A Property". Therefore, has a separate page for "Property Purchases". Does this mean I would have to have two search files for e.g. exec/search.cgi and exec/search2.cgi? Can any body help me out with this as I am completely baffled and am up against time. Anticipated Thanks Carl
|
|
|  |
 |

Luke
Staff
/ Moderator

Oct 7, 2002, 2:51 PM
Post #2 of 4
(2141 views)
Shortcut
|
|
Re: [Carl] Property Sales and Letting
[In reply to]
|
Can't Post
|
|
I helped Carl via email, however, for any of you who are interested here's how you create two separate search forms: one for searching lettings (rentals) and another for searching for sale homes. We can do this in a few simple steps. Please note that an understanding of HTML is recommended to make these changes. What you need to do is use one of your spare fields to create a Property Type drop down menu. You'll also need to create 2 static HTML search pages, one for each property type. 1. Create a new listing field called Property Type (,Letting, For Sale). This can be done by going to the "Setup Options" --> "Setup Listing Fields" Find a spare listing field where you can add this. In this example we'll use field #35. Enter in the following: Property Type (,Letting, For Sale) - select drop down as the field type - make sure to click the "Active Field" check box. 2. Now create some test listings in the Listings Editor. Further down the Listing Editor page you will see your new Property Type dropdown menu. Create a few test listings for each of the property choices. 3. Go to your search.cgi page through a web browser and view the source code. We will use this page to create both of your "letting" and "for sale" search forms. Copy and paste the entire source code into a new HTML file with a text editor. In the source code change: <form method=get action="search.cgi"> to this : <form method=get action="http://yourwebsite.com/cgi-bin/rm/exec/search.cgi"> (change the name to your actual website name and enter the correct path to your search.cgi). Just under the <form...> tag you will see a number of hidden field tags. Just underneath those, add : <input type="hidden" name="lfield35_keyword" value="Letting"> You'll now want to save the search form you're creating as an HTML file. You can name the file after the office (e.g. search_letting.html) and upload it to your server. 4. Finally, repeat step 3 for the "for sale" property type. In the hidden field simply change the value to "for sale" and remember to save the file as a different filename (e.g. search_forsale.html) 5. When done, upload the files to your websever, test the search forms to ensure that they work correctly, and make them available to your site visitors. I hope this helps, if anyone has any questions please feel free to let me know. :) Luke Holzken Product Development
|
|
|  |
 |

Carl
New User
Oct 7, 2002, 3:57 PM
Post #3 of 4
(2139 views)
Shortcut
|
|
Re: [Luke] Property Sales and Letting
[In reply to]
|
Can't Post
|
|
Hi Luke Your help has been very much appreciated, I must admit I was a litle confused at the start and email shooting back and forth like there was no tomorrow. However, once I sat down and red the emails properly instead of trying to rush into it like a bull in a china shop I soon got to grips with it all. It's amazing what you can do with yuor programme and I've bearly left the basics but have made some great amendments to the template files. Put it this way, the Estate Agents I'm developing for are well chuffed. There is something else I'd like to ask I'm currently working on the index page and was wondering how to incorporate Realty Manager $lfields$ into the index.html page? Thanks again for all of your help, if I lived closer I'd be buying a pint. Cheers Luke Carl
|
|
|  |
 |

ken_itools
Staff

Oct 8, 2002, 5:43 PM
Post #4 of 4
(2123 views)
Shortcut
|
|
Re: [Carl] Property Sales and Letting
[In reply to]
|
Can't Post
|
|
Hi Carl, Good to hear that your clients are "well chuffed" - I'm assuming that's a good thing ... I'm afraid that $lfieldx$ placeholders can only be added to the _publish_listing.html, _publish_listing_index.html, and _search_results.html template files. Realty Manager's placeholders are used to specify the location where listing data is output. Unfortunately it's not possible to add placeholders to static HTML pages not updated or created by Realty Manager. Give us an idea of what you are trying to achieve, and we may have some suggestions for you. ---------- Ken Clarke - YAPG (Yet Another Perl Guy :) interactivetools.com, inc. Tel: (604)689-3347 - Fax: (604)689-3342 - Toll Free: 1(800)752-0455
|
|
|  |
|