Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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 ! :)
Comment | File | Size | Author |
---|---|---|---|
#6 | search_theme_form.tpl_.zip | 373 bytes | webmatter |
Comments
Comment #1
chee_52 CreditAttribution: chee_52 commentedComment #2
chee_52 CreditAttribution: chee_52 commentedComment #3
webmatter CreditAttribution: webmatter commentedHi 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.
Comment #4
turman CreditAttribution: turman commentedYes 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..
Comment #5
webmatter CreditAttribution: webmatter commentedDo 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.
Comment #6
webmatter CreditAttribution: webmatter commentedHi 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
to search_theme_form.tpl.php and I am attaching the amended file as zip.
Will update the theme package asap.
Comment #7
turman CreditAttribution: turman commentedThanks again for that quick fix ! :)
Comment #8
webmatter CreditAttribution: webmatter commented