Search field length is only 20, how can I increase it? - Joomla! Forum - community, help and support


i've been using joomla while, , of problems, i've been able search around , answers need. (if doesn't positive joomla community, don't know does!)

however, 1 problem i've had , have not been able solve on own, changing length of search field. it's stuck @ 20. i'd prefer be...well, quite bit longer. 20 characters isn't lot, know.

so, wondering if there somewhere go , change value. i've been unable find 1 on own, i've noticed, tend overlook things pretty , might missing something.

and if isn't can change, there module download somewhere , install work better? of current search module, i'm sure prefer practical on pretty.

-rook
http://aforkinthesocket.com/main

try following:

edit file default.php located in file \modules\mod_search\tmpl. edit following line of code follows:

before change:

code: select all

          $output = '<input name="searchword" id="mod_search_searchword" maxlength="'.$maxlength.'" alt="'.$button_text.'" class="inputbox'.$moduleclass_sfx.'" type="text" size="'.$width.'" value="'.$text.'"  onblur="if(this.value==\'\') this.value=\''.$text.'\';" onfocus="if(this.value==\''.$text.'\') this.value=\'\';" />';

after change:

code: select all

          $output = '<input name="searchword" id="mod_search_searchword" maxlength="'.$width.'" alt="'.$button_text.'" class="inputbox'.$moduleclass_sfx.'" type="text" size="'.$width.'" value="'.$text.'"  onblur="if(this.value==\'\') this.value=\''.$text.'\';" onfocus="if(this.value==\''.$text.'\') this.value=\'\';" />';


note:
(a) make sure increase length in search module
(b) make sure follow template override technique documented in http://docs.joomla.org/how_to_override_the_output_from_the_joomla!_core.





Comments

Popular posts from this blog

Hur installera Joomla på One.com - Joomla! Forum - community, help and support

removing index.php from URL address - Joomla! Forum - community, help and support

「イメージマップのアンカー名には、...」のエラーが出ないようにしたい