You would use hook_search() to specify the name of the new tab on the Search page, and then the query to search for the files. If the PDF files have been uploaded via Drupal, then there should be a record of them in the database and you could search there. Otherwise, you would have to add some code to iterate through the file directory, get the file names, and display them on the screen. Either way, hook_search() looks like it would work.
Steve
Jody Cleveland wrote:
Thanks!
Is there any way to code a search box to search a specific file directory on the site?
(I've got several directories of pdf files that I'd like to limit searches to.)
- jody
On 12/28/07 5:11 PM, "Bill Fitzgerald" bill@funnymonkey.com wrote:
Views would do this pretty well -- create a view that returns all nodes in a category, and expose the Search: Index filter.
Cheers,
Bill
Jody Cleveland wrote:
Hello,
Is there any way to code an html page to have a search box that defaults to search a specific category?
- jody