Joomla – Increase search box limit

By default Joomla allows to enter only 20 characters in the search box. This can be changed by a simple core hack. Be aware that any changes to Joomla core files can be overwritten by a Joomla update.

Open file: /public_html/_sites_/mysysadmintips_2/language/en-GB/en-GB.localise.php

en-GB part may be different for you (depending on Joomla language)

On line 63 you will find following code:


public static function getUpperLimitSearchWord() {
return 20;
}

Change return 20 on line 64 to your new limit. i.e. return 40;

Joomla 2.5



Comments

Leave a Reply

Your email address will not be published. Required fields are marked *