Loading...
 
Features / Usability

Features / Usability


Re: Re: Re: Uncheck the exact match in search module

posts: 400

I've tested on 7.0 and 7.1 and it works for me if I clear the temp/cache directory (in particular the files that start with "module"). A new tab titled "Module" pops up after the "Basic" tab.

The lines marked below is the code I added, just to make sure it's clear:

function module_search_wiki_page_info() {
                return array(
		'name' => tra('Search for Wiki Page'),
		'description' => tra('Search for a wiki page by name.'),
		'prefs' => array('feature_wiki'),
////////start of new code////////////
		'params' => array(
			'exact_match' => array(
				'name' => tra('Exact Match'),
				'description' => tra('Exact match checkbox checked by default if set to "y".') . " " . tr('Default: "n".'),
				'filter' => 'alpha'
			),
		),
//////////end of new code//////////
	);
}


function module_search_wiki_page( $mod_reference, $module_params ) {
////////start of new code////////////
	global $smarty;
	$smarty->assign('exact_match', isset($module_params['exact_match']) ? $module_params['exact_match'] : 'n');
//////////end of new code//////////
}


I have the same two PHP errors you have but they don't seem to have an impact. Did you use a code editor when you made the change? Sorry, running out of ideas. Let me know whether any of this helped.
Regards,
lindon