Search code examples
mediawikimediawiki-extensions

MediaWiki How to enable AutoComplete for InputBox? (or is there an alternative extension)


I added an Input Box to our wiki's starting page. I want to mimic Google.

<inputbox>
type=search
break=yes
</inputbox>

and I have AutoComplete activated for Search https://www.mediawiki.org/wiki/Manual:Enabling_autocomplete_in_search_box

Now I realize, that I we have this cool auto completion for the search box but not for the prominent input box.

Is there a way to activate that? I was also already looking for alternative extensions.


Solution

  • Based on ASammour input I searched again.

    Updating Mediawiki:common.js helped

    but only with

    document.getElementById('searchform').action = '/w/index.php';
    document.getElementsByName('search')[0].id = 'searchInput';
    

    as described here https://www.mediawiki.org/wiki/Topic:Qun56cwugo953s9f