 |

pacwin
User
Feb 9, 2003, 2:47 AM
Post #1 of 9
(3063 views)
Shortcut
|
|
Search - how'd I do that anyway?
|
Can't Post
|
|
I once had a search page that worked! But during re-design of site I must have mixed my back ups with new style templates. I've tried going back to pristine _search_query.html. Do I link directly to the cgi-bin/rm/templates/-search_query.html or put it in public html? Right now it's located: http://www.mitchellrealestate.com.au/_search_query.html Also have tried putting simple text query on the sites homepage, but no joy there. That would be the ideal way of accessing the keyword search for a property name. Thanks for any help.
|
|
|  |
 |

Benjamin
Staff

Feb 9, 2003, 9:25 AM
Post #2 of 9
(3054 views)
Shortcut
|
|
Re: [pacwin] Search - how'd I do that anyway?
[In reply to]
|
Can't Post
|
|
Hey Pacwin, Actually, the way it works is that _search_query.html is used to make THIS page: http://www.yourdomain.com/your/path/to/search.cgi So, any changes you make to that template file will be reflected in the above URL. You should never refer directly to any of the template files; they're each used to publish html files (i.e. create them). But also, it's perfectly possible to put search scripts in other pages - pretty much wherever you want them! Post me back if you have any questions on how to do this, or... pretty much anything else :-) Ben interactivetools.com
|
|
|  |
 |

pacwin
User
Feb 9, 2003, 2:06 PM
Post #3 of 9
(3046 views)
Shortcut
|
|
Re: [Benjamin] Search - how'd I do that anyway?
[In reply to]
|
Can't Post
|
|
Thanks Ben for quick reply. I have the search query working. But when I try to make a form with a text box for visitors to type in a property name (lfield1) I would like the search results to be the next page they see. I would like to put this function on both public html pages as well as the listings template. Cheers!
|
|
|  |
 |

Benjamin
Staff

Feb 10, 2003, 5:36 PM
Post #4 of 9
(3013 views)
Shortcut
|
|
Re: [pacwin] Search - how'd I do that anyway?
[In reply to]
|
Can't Post
|
|
Hey Pacwin, When you say you "would like the search results to be the next page they see", what exactly do you mean? No matter what are the contents of your search form, search results should ALWAYS be returned when you click "Search Listings"... Sorry for not following! If you want to have links directly to search results, this is quite simple. All you need to do is do a particular search, then copy and paste the URL in your browser's address field into an html document, into a link, like this: <a href="URL_of_link">Name of link</a> Hope this helps. Ben interactivetools.com
|
|
|  |
 |

pacwin
User
Feb 10, 2003, 11:12 PM
Post #5 of 9
(2999 views)
Shortcut
|
|
Re: [Benjamin] Search - how'd I do that anyway?
[In reply to]
|
Can't Post
|
|
Hi This is the form I'm trying to put into html pages that are in the public directory: <form name="$lfield1_keyword" method="get" action="http://www.mitchellrealestate.com.au/cgi-mitchellrealestate/rm/exec/search.cgi?lfield1_keyword="> <input type="text" name="namesearch"> <input type="submit" name="Submit" value="Search for Property Name"> </form> I'll will upload the page so you can see the results. I already have navigation that link to and all types of properties, now the client wants a search that people can type in a property name (lfield1) Thanks
|
|
Attachments:
|
index.html
(18.7 KB)
|
|
|  |
 |

Benjamin
Staff

Feb 11, 2003, 3:04 PM
Post #6 of 9
(2968 views)
Shortcut
|
|
Re: [pacwin] Search - how'd I do that anyway?
[In reply to]
|
Can't Post
|
|
Hi, Thanks for posting the form code. What you'll need to do is change "namesearch" to "lfield1_keyword" in your form, to make this: <input type="text" name="lfield1_keyword"> (Assuming your address field is still it's default position (1) in the listings database). Now, whenever that field is filled in, they can search by address. Also, you should probably remove everything after the search.cgi in the action attribute of the form tag. I'm not sure, but it may interrupt the values entered into the form from getting through. Post me back if you have any problems. Ben interactivetools.com
(This post was edited by Benjamin on Feb 11, 2003, 3:05 PM)
|
|
|  |
 | |  |
 |

Benjamin
Staff

Feb 12, 2003, 8:47 AM
Post #8 of 9
(2950 views)
Shortcut
|
|
Re: [pacwin] Search - how'd I do that anyway?
[In reply to]
|
Can't Post
|
|
Ah! I made an oversight. Try adding one more hidden field to your search form: <input type="hidden" name="search" value="1"> That should feed in the search value to the search cgi asking to retrieve results rather than return the search page. Ben interactivetools.com
|
|
|  |
 |

pacwin
User
Feb 12, 2003, 11:00 AM
Post #9 of 9
(2943 views)
Shortcut
|
|
Re: [Benjamin] Search - how'd I do that anyway?
[In reply to]
|
Can't Post
|
|
Brilliant! Thanks so much Ben!
|
|
|  |
|