Hey all.

I need to create a custom search box within Drupal. When a user enters in the search parameter (which will always be a number), then the node that corresponds with that search parameter will be automatically displayed.

Example:

User enters 858. Go to database to find report ID that has value of 858. Once found, get the node ID that corresponds to this record. Return the node ID and use it to display the new page as the node page.

Please let me know if you have any questions. I explained the flow as best as I could.

I can do this in a PHP environment with ease, but I cannot figure out how to get around the modules within Drupal.

Any help is appreciated.

Thanks.

Comments

Knucklehead00’s picture

Figured out how to do it.

Create a block with a basic HTML setup for the search form and just make it hit a page outside of the drupal system and then do a header hit back to the node. Not modular, but it got the job done.