Customising Search Results

From Habari Project

Jump to: navigation, search

You can customise search results by adding the following to your theme file:

// restrict search to questions.
public function act_search( $user_filters = array() )
{
	$user_filters = array_merge($user_filters, array('content_type' => 'entry'));
	parent::act_search($user_filters);
}
Personal tools
This is a cached copy of the requested page, and may not be up to date.

Sorry! This site is experiencing technical difficulties.
Try waiting a few minutes and reloading.

(Cannot contact the database server: Access denied for user 'habari'@'localhost' to database 'habari_wiki' (localhost))


You can try searching via Google in the meantime.
Note that their indexes of our content may be out of date.