Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Search in this category?

Quote Reply
Search in this category?
Am I missing something here? In an e-mail I got a few weeks ago from Alex, it says:

-----
There is also one new feature:

o search only in this category feature.

You can get this new feature by just replacing your search.cgi,
Search.pm and DBSQL.pm file.
-----

I replaced those three files with the new ones and I'm still not seeing any "search only in this category". Is it there?


Matt Hahnfeld
EverySoft
Quote Reply
Re: Search in this category? In reply to
It looks like the HTML codes were not added to the category.html file.

I believe that you need to add the following codes in the category.html file:

Code:

<form action="<%db_cgi_url%>/search.cgi" method="GET">
<input type="radio" name="category" value="<%category_id%>"> Search this Category
<input type="radio" name="category" value="All"> Whole Site
<input type="text" name="query" size="40">
<input type="submit" value="Search">
</form>


There are also a few Threads in the Links SQL Discussion forum that provide HTML codes like the ones I've provided above.

Regards,

Eliot Lee

Quote Reply
Re: Search in this category? In reply to
hi

Can anyone help me please - I used the code below and found it hasn't worked. I must have done something wrong. You can see this code at work here

http://204.73.203.120/pages/3G_Publications/Magazines/more1.html

The problem is the search cannot be restricted to THAT category but instead searches ALL even when this option is not selected?! How do I fix this ?- thanks for your help
Steve
-----------------
I believe that you need to add the following codes in the category.html file:


<form action="<%db_cgi_url%>/search.cgi" method="GET">
<input type="radio" name="category" value="<%category_id%>"> Search this Category
<input type="radio" name="category" value="All"> Whole Site
<input type="text" name="query" size="40">
<input type="submit" value="Search">
</form>