 |

jimneilson
User
Dec 12, 2002, 5:30 AM
Post #1 of 2
(1316 views)
Shortcut
|
Hi Can you set up a search with more than Yes or No? Like "Schools" Yes, No, Near By, 1 to 3 Miles, 3 to 5 Miles. In the setup of that field would look like this: Schools: (,Yes,No,Near By,1 to 3 Miles,3 to 5 Miles) So that when the search box for Schools has been selected the search will return listings that have 3 to 5 Miles in the description. I hope this makes sense. Jim
|
|
|  |
 |

RobK_itools
Staff

Dec 12, 2002, 9:34 AM
Post #2 of 2
(1311 views)
Shortcut
|
Jim Makes perfect sense what you said. To do this you would have to add the extra selections into your "Listing Database Fields" (Setup Options -> Setup Listing Fields). So where it says Near School (,Yes, No) you would want to change this to Near School (,Yes, No, Near By, 1 to 3 Miles, 3 to 5 Miles). This way the selections are in the pull down for a new listing. Once that has been done, the search page (_search_query.html template file) must be modified to use a pulldown (instead of a checkbox) that would have the search criteria in it . The old search code that gave you a checkbox looked like this; <tr> <td><font size=2 face="arial"> Near School </font></td> <td><input type=checkbox name="lfield16_keyword" value="Yes" ></td> </tr> <tr> You would change this code to look like the following; <td> <select name="lfield16_match"> <option value="">Any <option>Yes <option>No <option>Near By <option>1 to 3 miles <option>3 to 5 miles </select> </td> By modifying this code in the html tables you will have replaced the old search option with the new one. Now you may have to do some layout changes to make it look the way you want. Hope this helps Rob interactivetools.com
(This post was edited by Cosmo on Dec 12, 2002, 4:55 PM)
|
|
|  |
 | |  |
|