Closed (fixed)
Project:
Documentation
Component:
Customization and Theming Guide
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
5 Mar 2006 at 02:26 UTC
Updated:
23 May 2007 at 23:33 UTC
At http://drupal.org/node/11812, the search box does not work in the default page.tpl.php. It should be "edit[keys]" instead of just "keys" in the text box. This applies to 4.6 at least.
<input class="form-text" type="text" size="15" value="" name="keys" /><input class="form-submit" type="submit" value=" <?php print t("Search")?> " />
Comments
Comment #1
killes@www.drop.org commentedfixed
Comment #2
(not verified) commentedComment #3
bradlis7 commentedWhen I load up the page up, it still seems to be wrong. Here's the exact text:
But in the text field, ' name="keys" ', should be ' name="edit[keys]" '. Sorry if I wasn't clear the first time.
Comment #4
bradlis7 commentedHere's an easier way to do it, which is how I did it in my theme, B7.
Comment #5
bradlis7 commentedCorrection: Instead of
if ($search_box):print search_form('','',null,'');endif;should be
print search_box("search_block_form");Comment #6
bradlis7 commentedSorry, due to the fact that preview doesn't work and carelessness, that wasn't right. I'll try to make it right this time.
It should be:
Comment #7
bradlis7 commentedMoved to handbook issues.
Comment #8
bradlis7 commentedI think I may have this right now. search_box() by default is for theme, so it should be something like this:
Comment #9
bradlis7 commentedSorry, it sure would be nice if preview worked like it's supposed to. Here's the real thing:
Comment #10
bradlis7 commentedI think the page.tpl.php needs some general love to get it up to speed.
It should use search_box() to print the search form, and "echo $scripts" should also be added in. I'm sure there's more, but that's all I know for sure.
Comment #11
add1sun commentedbunch of things corrected and a new sample put in that is bluemarine's D5 page.tpl.php.
Comment #12
(not verified) commented