Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Search this category only

Quote Reply
Search this category only
Hello
I know that this option "Search this catehory only" was in LSQL 1.13 but it is not working with the new generation!

Has it been taken off? and if so can i reactivete it?

Regards
Abd

http://www.idleb.com
Quote Reply
Re: Search this category only In reply to
It should work...what codes are you using in the category.html file for the searchbox?

Regards,

Eliot Lee
Quote Reply
Re: Search this category only In reply to
I am adding the code:

<input type="checkbox" name="thiscat" value="<%category_name%>">
<font face="verdana" size="2">Search this Category</font>

to the search tag.
still getting results from all over the site.

Regards
Abd

http://www.idleb.com
Quote Reply
Re: Search this category only In reply to
Hi,

See the default templates (category.html) for the proper html to use.

Cheers,

Alex

--
Gossamer Threads Inc.
Quote Reply
Re: Search this category only In reply to
As Alex stated, you need to look at the default codes in the category.html. The reason that the category search is not working is because you are NOT using the correct codes.

Regards,

Eliot Lee
Quote Reply
Re: Search this category only In reply to
works great thanks you both

Regards
Abd

http://www.idleb.com
Quote Reply
Re: Search this category only In reply to
Just in case someone comes over here looking for the same answer the code is:

<%if category_id%>
<input type="radio" name="catid" value="" checked> Entire Directory
<input type="radio" name="catid" value="<%category_id%>"> This Category Only<%endif%>

and it needs to be added to either your footer file or your category.html depending on where you place the search html.

Regards
Abd

http://www.idleb.com
Quote Reply
Re: Search this category only In reply to
Actually...these codes will only work in the category.html file, not the global included footer file. Of course, if you have a category-specific footer file, than yes, you can use the category search codes.

Regards,

Eliot Lee
Quote Reply
Re: Search this category only In reply to
Actually it will work fine in the global footer as you have the:

<%if category_id%>

tag before hand, so on the rest of the pages it won't show up.

Cheers,

Alex

--
Gossamer Threads Inc.