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.

How to set default channel in advanced search??

December 18, 2012 1:06pm

Subscribe [1]
  • #1 / Dec 18, 2012 1:06pm

    Brian_az

    36 posts

    Hello,

    I am trying to modify the advanced search script to default to one channel and hide it in the form, and show the categories for that field. I cant figure out how to do it since the categories use the ‘onchange’ event.

    The code is below, any ideas?

    Also, canI change the category listing from a multiselect to radio?

    Thanks!

     

    <div class="defaultBold">{lang:channels}</div>
    
    <select id="channel_id" name='channel_id[]' class='multiselect' size='12' multiple='multiple' >
    {channel_names}
    </select>
    
    </td>
    <td valign="top" width="16"> </td>
    <td valign="top">
    
    <div class="defaultBold">{lang:categories}</div>
    
    <select name='cat_id[]' size='12'  class='multiselect' multiple='multiple'>
      <option value='all' selected="selected">{lang:any_category}</option>
    </select>
.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases