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:

Copy to clipboard
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

There are no comments at this time.

Upcoming Events

1)  18 Apr 2024 14:00 GMT-0000
Tiki Roundtable Meeting
2)  16 May 2024 14:00 GMT-0000
Tiki Roundtable Meeting
3)  20 Jun 2024 14:00 GMT-0000
Tiki Roundtable Meeting
4)  18 Jul 2024 14:00 GMT-0000
Tiki Roundtable Meeting
5)  15 Aug 2024 14:00 GMT-0000
Tiki Roundtable Meeting
6)  19 Sep 2024 14:00 GMT-0000
Tiki Roundtable Meeting
7) 
Tiki birthday
8)  17 Oct 2024 14:00 GMT-0000
Tiki Roundtable Meeting
9)  21 Nov 2024 14:00 GMT-0000
Tiki Roundtable Meeting
10)  19 Dec 2024 14:00 GMT-0000
Tiki Roundtable Meeting