views:

945

answers:

2

Hiya,

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?

A: 

Place it to your current theme folder, after refresh browser. May be clearing cache required, if you enable caching.
See internal descriptions of these files here: http://api.drupal.org/api/search/6/search

Nikit
The theme registry is always on, even if page caching is disabled. So if you add new templates to your theme, you always have to rebuild the theme registry.
marcvangend
+2  A: 

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

related questions