PhpDig.net

Go Back   PhpDig.net > PhpDig Forums > How-to Forum

Reply
 
Thread Tools
Old 02-06-2005, 06:44 AM   #1
Jorik
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 06:46 AM. Reason: typos
Jorik is offline   Reply With Quote
Old 02-06-2005, 06:13 PM   #2
Charter
Head Mole
 
Charter's Avatar
 
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' />
Alternatively, you could set $site, $path, and $refine in the search.php file.
__________________
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.
Charter is offline   Reply With Quote
Old 02-09-2005, 05:06 AM   #3
Jorik
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.
Jorik is offline   Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Searching from any page kadeyy How-to Forum 0 03-29-2006 01:12 AM
Targeting a specific part of the page cyrax78 Mod Requests 2 02-07-2005 07:40 PM
Searching sections of my site separately IAMHHawaii How-to Forum 1 09-20-2004 07:07 PM
exclude specific directory from searching rasputin How-to Forum 1 01-29-2004 07:02 PM
reindex specific PHP page on change? ZAP How-to Forum 2 11-28-2003 06:35 PM


All times are GMT -8. The time now is 05:50 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.