Forums
|
|
#14 - Optimize the default search optionsBy default the Joomla search searches for any word. That is if you look for "Joomla components", you will find any page which contains either Joomla or components. People require AND search. The following hack to the core code will enable all words searching by default.
In /components/com_search/search.html.php: Also, in /components/com_search/search.php: Find: $searchphrase = mosGetParam( $_REQUEST, 'searchphrase', 'any' );
Change to: $searchphrase = mosGetParam( $_REQUEST, 'searchphrase', 'all' ); Rememer to make a backup of each files in case something goes wrong.
Only registered users can write comments!
Powered by !JoomlaComment 3.26
3.26 Copyright (C) 2008 Compojoom.com / Copyright (C) 2007 Alain Georgette / Copyright (C) 2006 Frantisek Hliva. All rights reserved." |
|||||||