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