ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

search input typeahead

November 07, 2012 1:59pm

Subscribe [3]
  • #1 / Nov 07, 2012 1:59pm

    77120

    15 posts

    hey i use a typeahead for the search input.

    how can i disable the standard one from ee, if i delete both “name” and “id” it works but then the search wont work anymore.

    so i need to disable the pulldown with recent searches, that it wont cover the typeahead i use from bootstrap

    {exp:search:simple_form channel="wiki" search_in="everywhere" result_page="wiki2/results" form_class="form-search"}
        <div class="input-append">
        <input 
        type="text" 
        name="keywords" 
        id="keywords" 
        class="search-query" 
        placeholder="Search"
        data-source="[{exp:channel:entries channel='wiki' backspace='1'}"{title}",{/exp:channel:entries}]" 
        data-items="4" 
        data-provide="typeahead"
        >
        <button type="submit" class="btn"><i class="icon-search"></i></button>
        </div>
        {/exp:search:simple_form}
  • #2 / Nov 08, 2012 12:21pm

    Shane Eckert

    7174 posts

    Hey there 77120,

    Thank you for asking your question in the ExpressionEngine forums!

    I think there is some confusion here. The current or what you call the “standard one from ExpressionEngine” is actually not an ExpressionEngine feature. That’s your browser using your browser’s history to fill in the input field. What you are trying to do is implement Bootstrap, which is a question better suited for the Community Help Forum.

    I will go ahead and move this thread over there for you.

    Have a great rest of the week.

    Cheers,

  • #3 / Nov 22, 2012 8:24am

    adsmart

    24 posts

    <input 
        type="text" 
        name="keywords" 
        id="keywords" 
        class="search-query" 
        placeholder="Search"
        data-source="[{exp:channel:entries channel='wiki' backspace='1'}"{title}",{/exp:channel:entries}]" 
        data-items="4" 
        data-provide="typeahead"
    autocomplete="off"
        >

    autocomplete=“off”

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases