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.

Advance Search Fields Categories not Showing Up

November 29, 2012 12:34pm

Subscribe [1]
  • #1 / Nov 29, 2012 12:34pm

    bdcads

    30 posts

    Hi,
    I am getting very confused and frustrated and not knowing why is this not working
    I specify the category in the Channel Edit Group Assignment

    I have look at the example on:
    http://ellislab.com/expressionengine/user-guide/modules/search/advanced.html

    I tried many different variations and still came up with nothing

    Here is the code I came up with:

    {exp:search:advanced_form channel="mychannel" result_page="search/result"}
    <input type="text" name="keywords" id="keywords" value="" maxlength="100" / >
    <select name="cat_id[]">
    {exp:channel:categories channel="mychannel" category_group="7"}
    <option value="{category_id}">{category_name}</option>
    </select> 
    {/exp:search:advanced_form}

    Also This

    {exp:search:advanced_form channel="mychannel" result_page="search/result"}
     <input type="text" name="keywords" id="keywords" value="" maxlength="100" / >
     <div class="defaultBold">{lang:categories}</div>
      <select name='cat_id[]'>
       <option value='all' selected="selected">{lang:any_category}</option>
     </select>
    {/exp:search:advanced_form}

    much help is appreicated

    thanks

  • #2 / Nov 30, 2012 10:26am

    MadWebDesigns

    147 posts

    Hi bdcads,

    Try adding the following parameters to your search form tag:

    show_expired="yes" 
    show_future_entries="yes"
    status="open"

    Also add the following hidden field to your form:

    <input type="hidden" name="search_in" value="everywhere" />

    Try that and let us know how it goes.

    Cheers,

    Mike

  • #3 / Nov 30, 2012 5:12pm

    bdcads

    30 posts

    Still not working,
    it searches only the keywords but I also want it to search by the categories also, kinda of like a filter search criteria

    I am using the gwcode_categories plugin
    but I also have put that inside the advance form field

     

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

ExpressionEngine News!

#eecms, #events, #releases