Gossamer Forum
Home : Products : Links 2.0 : Customization :

Searching in 2 spesific fields

Quote Reply
Searching in 2 spesific fields
How do I make these tell Links 2.0 which database field it's going to search in? I've got two ratio buttons, "sted" and "query". Query is a normal search, and sted uses the database-field "sted".

Thanks in advance!

PS: I don't want the user to search on BOTH fields!



------------------
Ronny Salomonsen <rsalomon@online.no>
Feline Medias

Quote Reply
Re: Searching in 2 spesific fields In reply to
Well, you can add fields separately RATHER than just the query field in your search field. You can add fields like the following in your search form, like the following:

Code:
Keyword in Sted Field: <input type="text" name="sted">

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
* Be sure to visit the Resource Center for FAQ's, Modifications and Extra Goodies!!
* Search Forums!
* Say NO to Duplicate Threads. :)
----------------------








Quote Reply
Re: Searching in 2 spesific fields In reply to
Are there any ways to do this without having 2 search-fields on the searching page? I don't want 2 input-fields, but 2 radio-buttons which tells Links which field to look in.

------------------
Ronny Salomonsen <rsalomon@online.no>
Feline Medias

Quote Reply
Re: Searching in 2 spesific fields In reply to
The only way is to add the field numbers into the @search_fields array in the links.def file.

Then you can change the bool options to or in your searchbox, so that it will search across fields, rather than only finding keywords in one field AND another.

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
* Be sure to visit the Resource Center for FAQ's, Modifications and Extra Goodies!!
* Search Forums!
* Say NO to Duplicate Threads. Smile
----------------------










[This message has been edited by Eliot (edited February 06, 2000).]
Quote Reply
Re: Searching in 2 spesific fields In reply to
How can I make these two diferent fields form a phrase in "query" ??
Quote:
search.cgi?query="field1"+"field2"&type=phrase

Thanx a lot....
Girus.....
Quote Reply
Re: Searching in 2 spesific fields In reply to
At this time, it can't be done in that manner. Again, oldmoney mentioned he is working on a Mod that may do this...Did you read his Reply in the Topic you created?

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums