Summary:Add a searchbox for site and websearch using google
Version: 2006-11-27
Prerequisites: pmwiki 2
Status:
Maintainer:
Questions answered by this recipe
How can I add a google search box?
how can I add site search using google?
Description
Add the following markup to your page, replace the site url with your own:
(:table :)
(:cell:)
(:input form action="http://www.google.com/search" method=get:)
(:input text name=q value="" size=30 :)
(:input submit name Search:)
(:cellnr:)
%padding-left=30px%(:input checkbox name="sitesearch" value="pmwiki.org"
checked=checked :) [-only pmwiki.org-]
(:input end:)
(:tableend:) |
|
|
Notes
Release Notes
If the recipe has multiple releases, then release notes can be placed here. Note that it's often easier for people to work with "release dates" instead of "version numbers".
Comments
I changed the checkbox code in the example above. I believe the correct code would be "checked=checked" like this:
(:input checkbox name="sitesearch" value="pmwiki.org" checked=checked :)
instead of checked=1 like it was before:
(:input checkbox name="sitesearch" value="pmwiki.org" checked=1 :)
I guess browsers don't seem to care any more but I've run into problems using "1".
BillReveile January 28, 2007, at 12:10 AM
See Also
Contributors