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.

Simple Search Form with both keywords and member_name in one field

October 09, 2011 8:36am

Subscribe [2]
  • #1 / Oct 09, 2011 8:36am

    Kim Ryu Hyun

    65 posts

    Hi, this is my simple search form code:

    {exp:search:simple_form weblog="{embed:my_weblog}" search_in="everywhere" results="5" result_page="_search/_html_blog_results/" no_result_page="_search/_html_blog_no_results/"}
          
    
          <div id="searchwrapper">
           <input type="text" name="keywords" value="" class="searchbox" />
           
    
    
           <input type="image" src="{site_url}img/blank_image.png" class="searchbox_submit" value="검 색" alt="검 색" title="검 색" />
          </div>
         {/exp:search:simple_form}

    This works fine for keywords but when I search for member name, it simply doesn’t work. However, if I change this to name=“member_name”, it only works for member name search.

    Is there a way to have a single input to search in both keywords and member names at once? If not, what would be the best way to implement something similar?

  • #2 / Oct 10, 2011 3:12am

    John Henry Donovan

    12339 posts

    Kim Ryu Hyun,

    Unfortunately no, it is either one or the other. You are welcome to make a feature request here.
    Have a look at SuperSearch. it might do what you wish

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

ExpressionEngine News!

#eecms, #events, #releases