Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Search & Subcategories

Quote Reply
Search & Subcategories
When searching a top level category specifically, is there a way to include all the subcategories from this top level, or does this do that by default. For example:

Search in cars and below: search.cgi?query=oil&catid=123

--- parts
--- accessories
--- tires

needs to search all the subcategories as well as 'cars'.


[sorry if answered before!]

ATEX 100
Quote Reply
Re: [AteX] Search & Subcategories In reply to
Although I don't use categories in such a way, I'm pretty sure that a search under an ID number of a category will also search all those sub categories under this main category.

If your setting up a harcoded search select which I think you are by your post, you can limit the search to that category and those underneath with:

<option value="ID_NUMBER_HERE">cars</option>
<option value="ID_NUMBER_HERE">bikes</option>

and also offer a full database search with:

<option selected value="0">All Database</option>

with the "0" meaning the base level that all categories live under.


Free JavaScripts @ Insight Eye