Template

Theme Drupal 6 Search Results

Submitted by aaron on Wed, 04/07/2010 - 19:57

In drupal 6, the variable $result is available in search-result.tpl.php.  The commented section at the top of this file makes no mention of this variable, so if you want to do something as simple as showing the created date on a node instead of the modified date, then you're in for a bit of researching (unless you read this blog post!).
 
So, if you want to modify how search results are displayed, then you need to:
1) Copy search-results.tpl.php and search-result.tpl.php from /modules/search to your theme's folder.

Syndicate content

Copyright © 2011, Aaron Blondeau

Drupal theme by Kiwi Themes.