 |

CarlitosWay
User
Sep 23, 2006, 8:07 PM
Post #1 of 6
(3046 views)
Shortcut
|
|
Add search options
|
Can't Post
|
|
Hi, this is my first post, your software is great and I hope I will contribute on the future instead of just asking. One thing that keep me wondering is how can I add a search by city and state(province) to search_query.html . To me it makes sense that most of my clients before considering price, or other features of the property.. etc they'll be looking to select the area of their choice. I will greatly appreciate any help that can be provided on this regards Happy weekend to all.
|
|
|  |
 |

ChetW
Staff

Sep 24, 2006, 2:48 PM
Post #2 of 6
(3033 views)
Shortcut
|
|
Re: [CarlitosWay] Add search options
[In reply to]
|
Can't Post
|
|
Hi, Thanks for the post! You could use 2 of Listings Manager's spare fields to create a State and City search, this would involve making use of two new fields and then editing your advanced search template file. Does this sound like an option that may work for you? If so follow the steps below: Use a spare lfield to create a "State" select option: 1. Login to your Listings Manager admin section and select 'Setup Options' from the far right hand side of the screen. 2. You will notice a section called "Database Options" in this section select the 'Setup' button beside the "Setup Listings Fields" title. 3. You will now be on the "Listing Database Fields" page, there will be a series of unused lfields on this page we are going to use two of these spare fields. 4. First we will create a "State" field, select a spare lfield for example purposes I am going to choose "lfield10". Make note of this lfield number because we will need to use it a little later. 5. For lfield10 there is a text area secion called "Field Name" in this section type the following: State Selection (,state1,state2,state3,state4,state5) Replace the "state" text with the actual state names you would like to use. Next you will notice a "Field Type" option from this selection choose 'dropdown' also be sure that the "Enabled" check box is turned on. At this point we have created a "State" select option that will be used when entering a listing, next we will create the "City" select that will be used when adding a new listing. Use a spare lfield to create a "City" select option: 1. While remaining on the "Listings Database Fields" page you will want to select a new spare lfield, for example purposes I am going to use lfield11, like before make not of this lfield number because we will need to use it later. 2. In the "Field Name" text area type the following: City Selection Next for the "Field Type" option select 'textarea' also be sure that the "Enabled" check box is turned on. You will now have created the second "City" select field that will be used when creating a new listings. In total there is two fields that you have created, the first (lfield10) is a dropdown select for the state that the property is located in and the second (lfield11) is a textarea for typing in which city the listing being added is in. Now we will edit your advanced search page so that it has both the "State" and "City" search options available for searching. Editing your advanced search template file: 1. Login to your webserver and locate the "_search_query.html" template file, this file can be found inside the /templates/ directory on your webserver download this file to yor local computer. 2. Open the "_search_query.html template file and inside the <form> tags place the following code:
State Selection<br/> <select name="lfield10_keyword"> <option value="">state1 <option value="">state1 <option value="">state1 <option value="">state1 </select> The above code will add the "State Selection" dropdown to your advanced search page, remember to change the "state" text to the actual state names. Also you will want to change "lfield10" so that it is the actual lfield you are using for the state select option. Next take this bit of code:
City Selection<br/> <input type="text" name="lfield11_keyword" value=""> And place it where you would like the "City Selection" to appear on the advanced search page. This will give users a text area to type the city in when they are doing a search. Remember to replace "lfield11" with the actual field that you are using for the city selection option. :) When you are done editing the "_search_query.html" template file re-upload it to its proper spot in the /templates/ directory and then re-publish your Listings Manager pages from inside the Listings Manager admin section. :) Give this a try and if you have any further questions please don't hesitate to ask! Cheers, Chet Woodside - 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.
|
|
|  |
 |

CarlitosWay
User
Sep 24, 2006, 9:50 PM
Post #3 of 6
(3022 views)
Shortcut
|
|
Re: [ChetW] Add search options
[In reply to]
|
Can't Post
|
|
Thanks it works like a charm, 2 more questions 1- If a create a database listing field with checkboxes what will be the sintaxis to make the advanced search page (search_query.html) validate the checkboxes? 2- Is there a links that I can add to the publish_listing to go back to results. Thanks for all the help I will send you the finished product, this software rocks!
|
|
|  |
 |

ross
Staff
/ Moderator

Sep 25, 2006, 8:48 AM
Post #4 of 6
(3002 views)
Shortcut
|
|
Re: [CarlitosWay] Add search options
[In reply to]
|
Can't Post
|
|
Hi. Glad to hear that worked for you . With your first question, I am not quite sure what you are looking for there. Could you give me a few more details so I can look into the options that you have? The second question should be easy though . There is a neat little bit of JavaScript that you can use to send your visitor back to the previous page. Here’s an example:
<form> <input type="button" value="Back" onclick="history.back()"> </form> That’s going to give you the standard grey forum button but when you click it, you will be taken to the previous page. You can also use a standard text link if you like with this:
<a href=”#” onclick=”history.back();”>Go Back</a> How does that sound? Give it a shot and let me know what you think . ----------------------------------------------------------- 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.
|
|
|  |
 |

CarlitosWay
User
Sep 26, 2006, 7:16 PM
Post #5 of 6
(2984 views)
Shortcut
|
This is the link to my search page http://www.onlinepropertiescr.com/listman/exec/search.cgi on the option search by location the option locale has checkboxes the database field is define are defined by marking checkboxes how do I validate the ldfieldx if a have checkboxes on the search and the database in opposite as the template that has checkbox search(Near school or Near Transit) that are defined on the database as a yes/no parameter. Thanks
|
|
|  |
 |

ross
Staff
/ Moderator

Sep 27, 2006, 8:51 AM
Post #6 of 6
(2972 views)
Shortcut
|
|
Re: [CarlitosWay] Add search options
[In reply to]
|
Can't Post
|
|
Hi there. Tahnks for the extra details! I think what you are looking to do here is use some checkboxes on your search page and hook them up to fields in your database that are set as drop downs. This would actually be quite difficult so what I would recommend is switching the fields so they are all the same. I personally prefer drop down menus as they seem easier to work with. Do you think you could switch the checkboxes on your search page to drop down menus with yes/no options so they match your database? Of course, if I am not on the right track here, let me know and I’ll have another go at it . ----------------------------------------------------------- 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.
|
|
|  |
 | |  |
|