I've tried this on two installations and there is the same problem with both:

When you search from the sidebar, it doesn't give any results, but just brings you to /search/node. Then you have to search again in the form in the main content area to actually get results.

The code for the form looks different from other themes like box_grey (which worked a little better when I inserted it into the page template, but not perfectly). I'm going to try to figure out what is wrong, but just wanted to mention it.

Thanks

Comments

wdrupal’s picture

I'm not sure exactly how it works, but I got it working by replacing this default code:

    <?php if ($search_box): ?> 
    <form action="<?php print $search_url ?>" method="post" id="searchform"> 
      <input class="form-text" type="text" size="15" value="" name="keys" id="s" /> 
      <input class="form-submit" type="submit" value="<?php print $search_button_text ?>" id="searchsubmit" /> 
    </form> 
    <?php endif; ?> 

with this, combined from Connections and box_grey templates:

<?php if ($search_box): ?>
  <form action="<?php print $search_url ?>" method="post" id="searchform">
    <div id="search">
      <input class="form-text" type="text" size="15" value="" name="edit[keys]" id="s" /><input class="form-submit" type="submit" value="<?php print $search_button_text ?>" id="searchsubmit" />
    </div>
  </form>
  <?php endif; ?>

(page.tpl.php in Connections theme)

Richard Sheppard@www.siliconmeadow.net’s picture

A workaround I've done is to remove that code altogether and enable the search form block and put it at the top of the left column. Visually, it's a lot heavier than the one coded into page.tpl.php, but it works.

(Using it with 4.7, btw - can be seen here: http://www.siliconmeadow.net)