 |

marcin
User
Mar 25, 2003, 2:35 PM
Post #1 of 3
(1310 views)
Shortcut
|
|
Simple and advanced search
|
Can't Post
|
|
I was just wondering if there is a way creating a two searches. The simple one and more complex. Did somebody did that ?
|
|
|  |
 |

Benjamin
Staff

Mar 25, 2003, 7:47 PM
Post #2 of 3
(1305 views)
Shortcut
|
|
Re: [marcin] Simple and advanced search
[In reply to]
|
Can't Post
|
|
Hi Marcin, Absolutely! Actually, you can create as many searches as you want. Here's kinda how it works: When you link to your search.cgi script in your browser, that search form will always be generated from your _search_query.html template stored in your /templates directory. That's the search form that is linked to (by default) throughout your templates. However, there's no reason why you couldn't create as many search forms as you want - each with differing levels of complexity, and even some that would by default only search certain subcriteria. To do this, copy and paste the search form code in your _search_query.html template into a new file. In this new file, you'll need to make a few changes: 1. update the action attribute of the form tag: make sure it's pointing to the search.cgi script. 2. update any of the (previously) dynamically generated aspects of the form - like the agent name dropdown. Now, inside this new search page, you can remove or add any search fields you wish. Hope the above makes sense! If you need more pointers on how to do it in your case, just post me back :-) Ben interactivetools.com
|
|
|  |
 |

marcin
User
Mar 26, 2003, 6:22 AM
Post #3 of 3
(1289 views)
Shortcut
|
|
Re: [Benjamin] Simple and advanced search
[In reply to]
|
Can't Post
|
|
Thanks a lot :) I will try that.
|
|
|  |
|