[support] Custom search page for specific category

Jody Cleveland cleveland at winnefox.org
Mon Dec 31 22:56:41 UTC 2007


How do I get drupal to search files though? And, will it search content of
those files? Unfortunately, I haven't uploaded them through Drupal. I have
multiple directories with thousands of pdf files as part of a local history
digitization project.

- jody


On 12/31/07 11:45 AM, "Steve Edwards" <killshot91 at comcast.net> wrote:

> 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 at 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
>>>> 
>> 



More information about the support mailing list