How to modify the drupal search templates?

Shadi Almosri picture Shadi Almosri · Jan 15, 2010 · Viewed 8.9k times · Source

I'm attempting to create my own templates for the search pages using drupal 6. When creating these template pages i usually use Drupal Template Suggests but for some reason when creating the files:

search-block-form.tpl.php search-result.tpl.php search-results.tpl.php search-theme-form.tpl.php

None of them seem to override the Drupal templates for some reason? is there anything special that i have to put in or anything i can test to see if they are working as everything i've tried so far has failed to work :/

Thanks in advance

UPDATE 1

Seems they work now i've got these working:

search-result.tpl.php search-results.tpl.php

But it seems i can't get hold of the template that controls the form...any ideas which one that is?

Answer

jumpfightgo picture jumpfightgo · Jan 20, 2010

search-theme-form.tpl.php: http://api.drupal.org/api/drupal/modules--search--search-theme-form.tpl.php/6

You can customize some of the form with the preprocessor: http://api.drupal.org/api/function/template_preprocess_search_theme_form/6

Here's an example of using the preprocessor: http://agaric.com/note/theme-search-form-drupal-6