When Search module is enabled, it always appears at the top of the left column. If I edit the Search block to appear in the header or right column (for instance), it places an additional search box in that desired place. Hence, I end up having 2 search boxes on my site instead of just one.

Comments

johnnybegood’s picture

Status: Active » Postponed (maintainer needs more info)

Do you have the same problem with Garland?

lggarrison’s picture

I am having this problem in garland and minnelli.

Dries Arnolds’s picture

Got the same problem here, but if it's a thing across multiple themes it won't be an Aberdeen bug I think.

joejoe04’s picture

I'm having same problem in Garland too and I just installed Drupal 5.1 and have not made any drastic changes to the code. Did any of you ever figure out what the problem is with this?

joejoe04’s picture

I just found out how to stop this from happening...go to page.tpl.php and delete the following line:

<?php if ($search_box): ?><div class="block block-theme"><?php print $search_box ?></div><?php endif; ?>

[Edited by kiamlaluno]

Sugar Face’s picture

To turn off the search box in the top of the left column, I went to Administer >> Site Builder >> Themes >> and turned it off in there. This will not affect the search module that you turn on under Administer >> Site Builder >> Blocks >>

You can turn it off for all of the themes at once or one theme at a time.

To turn it off for all themes then click configure at the top of the page. On the global configuration page, under Toggle Display uncheck Search box then click Save configuration

To turn it off for a specific theme, then use the configure link next to the theme you want to edit. On the resulting page, under Toggle Display uncheck Search box then click Save configuration

raffuk’s picture

That doesnt work for me. I've turned off in the theme settings and the box is still appearing at the top left corner.
Cache clear too.

Please help!

Thanks

ishmael-sanchez’s picture

Assigned: Unassigned » ishmael-sanchez
Status: Postponed (maintainer needs more info) » Needs work

Ok, I see the issue. I just did a vanilla install of Drupal 5 and I was able to fix this. First update the page.tpl.php around line 25 from <?php print $search_box; ?> to

<?php if ($search_box): ?>
<?php print $search_box; ?>
<?php endif; ?>

Second, clear the cache and navigate to admin/build/themes/settings/aberdeen and uncheck "Search box" under the Toggle display settings. This should resolve your issue with the duplicate search box. I'll include this fix in a future release.

ishmael-sanchez’s picture

Status: Needs work » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.