r7 - 03 May 2004 - 19:37:22 - MattWilkieYou are here: TWiki >  Codev Web > AddGoogleFormToSearch
Tags:
, create new tag
To add a google search form to your public wiki, use something like this:
<form method="get" action="http://www.google.com/search">
  <input type="text" name="q" size="31" maxlength="255" value="" /> 
  <input type="hidden" name="domains" value="twiki.org" /> 
  <input type="hidden" name="sitesearch" value="twiki.org" /> 
  <input type="submit" name="btnG" value="Google Search twiki.org" />
</form>

...to get this:

Further customizations like search results within your own page template are available with free registration: http://services.google.com/cobrand/free_trial

Another idea is to combine go and search in the GoBox. See related discussions in PhotonSearch, PluggableGoBox, GoIsSearch, SearchSuggestion.

Q: Is it possible to limit the search to the [name of web] only?


RandyKramer, MattWilkie, PeterKlausner, PeterThoeny,

stuff to get moved to another topic

TWiki tries to do both: allow using < and > characters in text and support html markup. The heuristic is:

  • a pair of <, then > in one line is assumed to be a tag
  • unpaired < and > are literal -- like in the Google form above!

The business about the unpaired < and > and the way you joined two lines in the bulleted list are rather subtle / interesting (look at the above two bullets in edit mode).


Edit | WYSIWYG | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r7 < r6 < r5 < r4 < r3 | More topic actions
 
Powered by TWiki
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback SourceForge.net Logo