Hi all,
The search box included into the theme header doesn't work.
Apparently it's because some form hidden params (form_build_id and form_id) are missing :
- search block manually included (ie. with admin>build>block) : these params are present into the form and it works well.
- search block included into the Garland theme : the same
- search block included into the BlackPiano theme : no hidden params are included and the form doesn't work !
Anyway thanks a lot for that theme, it's very classy ! :)

CommentFileSizeAuthor
#6 search_theme_form.tpl_.zip373 byteswebmatter
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

chee_52’s picture

Status: Active » Fixed
chee_52’s picture

Status: Fixed » Active
webmatter’s picture

Hi turman, please check this thread http://drupal.org/node/1008220

If you enable searchbox in your theme settings and set the permissions accordingly the searchbox should display correctly.

turman’s picture

Yes the searchbox is enabled in my theme settings and I have only 3 kinds of permissions for the search module :
- admin search : only enabled for "author" role
- search content: enable for every body (anonymous user, authenticed user and author)
- advanced search : the same

So I don't think that issue is related to permissions..

And as I said, the search block is working well when it's manually included (ie. with admin>build>block) or when it's included into the Garland header. And in that two cases the hidden params (form_build_id and form_id) are present into the search form..

webmatter’s picture

Do you have a link to your site? The searchform appears in the header as soon as you enable it. It's not a block region and you don't need to include anything manually.

webmatter’s picture

FileSize
373 bytes

Hi turman, sorry ... I was thinking of a display issue whereas you were talking about functionality :)
Thank you very much for your hint. You are right the hidden parameters were missing.
I have added

print $search["hidden"];

to search_theme_form.tpl.php and I am attaching the amended file as zip.
Will update the theme package asap.

turman’s picture

Status: Active » Fixed

Thanks again for that quick fix ! :)

webmatter’s picture

Status: Fixed » Closed (fixed)