|
02-06-2005, 07:44 AM | #1 |
Green Mole
Join Date: Feb 2005
Posts: 2
|
Creating a second search page in the same site searching only a specific path
I already have a search page in my website, searching the entire site.
I want to add a second search page, but that will search through only a specific path, for instance /kb/faq - displaying results for pages only under this paths. Adding the second search page is not a problem (I think) - but how to make it search only a specific path? Thanks in advance Roy. Last edited by Jorik; 02-06-2005 at 07:46 AM. Reason: typos |
02-06-2005, 07:13 PM | #2 |
Head Mole
Join Date: May 2003
Posts: 2,539
|
Get the site_id from the sites table, and try the following in an HTML form:
HTML Code:
<input type='hidden' name='site' value='SITE_ID' /> <input type='hidden' name='path' value='kb/faq/' /> <input type='hidden' name='refine' value='1' />
__________________
Responses are offered on a voluntary if/as time is available basis, no guarantees. Double posting or bumping threads will not get your question answered any faster. No support via PM or email, responses not guaranteed. Thank you for your comprehension. |
02-09-2005, 06:06 AM | #3 |
Green Mole
Join Date: Feb 2005
Posts: 2
|
Thanks thanks thanks. My boss likes me better now.
Ended up using the PHP variables instead of hidden form fields. Works great. Roy. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Searching from any page | kadeyy | How-to Forum | 0 | 03-29-2006 02:12 AM |
Targeting a specific part of the page | cyrax78 | Mod Requests | 2 | 02-07-2005 08:40 PM |
Searching sections of my site separately | IAMHHawaii | How-to Forum | 1 | 09-20-2004 08:07 PM |
exclude specific directory from searching | rasputin | How-to Forum | 1 | 01-29-2004 08:02 PM |
reindex specific PHP page on change? | ZAP | How-to Forum | 2 | 11-28-2003 07:35 PM |