Can it be made so the search box, label and button can be moved somewhere else on the page?

I'd like to move it into the header, away from the left column.

Comments

trisz’s picture

See the demo website
http://nemketto.neobase.hu

(Use firefox, it was not tested on IE!)

It can be moved to the header, but I don't like it.
It can be shrinked a little, remove the label, move it upward...

Other solution?

Considerations:
The user has to have the possibility to remove this block if it is useless.
The background picture covered partly with the block in the header.
It must work from screen resolution of 800x600.

greggmarshall’s picture

StatusFileSize
new279.32 KB

Most of the themes I've seen that can have the search in the header don't have any kind of background (the light green in your example). It's just the word Search, the input box and the Search button (some don't even have the word Search since it is pretty clear from the input box and a button labeled Search what the function is). See the sample I'm attaching (not that I'm excited by the client's choice of header graphic).

trisz’s picture

See the demo site again!

I could hide the unwanted content on css basis, but google's stupid algorithm will blacklist your site.
I could overload the search function in the drupal core, but your site would be broken after a drupal update. Unfortunately, module dependencies of themes are not controlled under drupal.
You can istall a module, like http://drupal.org/project/Custom_Search. You can delete the labels (admin/build/block/configure/search/0, set block title to "none", and admin/settings/custom_search, uncheck Display label).

If you accept this solution, I will upload the new test version to the demo site http://nemketto.neobase.hu in a few day.

greggmarshall’s picture

Sounds like an elegant solution.

How will I move the custom search block into the header since its not a region?

trisz’s picture

A header region is inserted into the version uploaded to the demo site. (You cannot download it right now, as I am testing it.)
If you use the Custom Search module, do not forget to set the permissions for all of the users! Otherwise only the administrator will not see the label.

greggmarshall’s picture

That is really great! Let me know when I can download the updated version.

I appreciate the enhancement.

trisz’s picture

Status: Active » Fixed

You can download the zerolime-6.x-1.2.tar.gz file from the demo website, http://nemketto.neobase.hu.
I will upload to drupal.org as soon as posible.
Don't forget, the header region has been tested only for the search block.
Other blocks will behave strange.

greggmarshall’s picture

StatusFileSize
new371.26 KB

I downloaded the update and installed it.

I'm not seeing the new header region in the blocks definition.

trisz’s picture

StatusFileSize
new235.83 KB

My solution is:

In the zerolime.info and zerolimepanorama.info files regions[header_region] = Header
In page.tpl.php file line 40

      <?php if ($header_region) { ?>
        <div id="header-region"><?php print $header_region?></div>
      <?php } ?>

See the screenshot! (fejléc=Header)
Unfortunately this theme has not theme settings file yet.

greggmarshall’s picture

Thanks. I think it was there and I needed to clear the caches to see it.

trisz’s picture

Status: Fixed » Closed (fixed)

This feature has been included in the development version 6.x-1.5-beta2
See http://drupal.org/node/958096.
So I close it.