Gossamer Forum
Home : Products : Links 2.0 : Customization :

Search Only in this category ???

Quote Reply
Search Only in this category ???
I got the mod working I just have one question. When I make it search only in that category, it does not include sub-categories of that category. Is there any way I can make it do this? For example:

If I was in the category "Support". I selected search only in this category. It right now only returns links in the category "Support". How do you make it return links from category "Support" and "Support/SubCat1" "Support/Subcat2", etc.?

Here is the source I am using:

if ($in{'category'}){
($in{'category'} eq $values[$db_category]) or next LINE;
}

Thanks,
Nicholas

------------------
Quote Reply
Re: Search Only in this category ??? In reply to
I don't know if this will work or not, but it might be worth a try:

Quote:
if ($in{'category'}){
($in{'category'} =~ $values[$db_category]) or next LINE;
}

I hope this helps.

------------------
Bob Connors
bobsie@orphanage.com
www.orphanage.com/goodstuff/
goodstufflists.home.ml.org/




[This message has been edited by Bobsie (edited January 23, 1999).]
Quote Reply
Re: Search Only in this category ??? In reply to
No luck. Thanks anyway. Any other idea?

------------------