skip to main content

TAMU Webmaster's Blog

Information and insight from the A&M Webmasters

Adding your own site search box

March 10th, 2009 by mdmcginnis

Letting visitors search your website, using the power of the Texas A&M Google Search Appliance, can be as simple as pasting a few lines of code into your page.

Here’s all you would need to paste into your web pages or templates:
<form method="get" action="">
<input type="text" name="q" size="18" maxlength="255" value="" />
<input type="submit" name="btnG" value="Search" />
<input type="hidden" name="site" value="default_collection" />
<input type="hidden" name="client" value="TAMU_frontend" />
<input type="hidden" name="proxystylesheet" value="TAMU_frontend" />
<input type="hidden" name="output" value="xml_no_dtd" />
<input type="hidden" name="sitesearch" value="YOUR WEB ADDRESS HERE">

You can read more examples on our page Creating Search Forms. Let us know if you have any questions about making this work for you. You can add comments to the post, or email us at webmaster at tamu dot edu.

Tuesday, March 10th, 2009 Search
Share this article

1 Comment to Adding your own site search box

  1. […] you use a Google Search Appliance search box on your site (which you can and should), you might want to update your pages to use the public […]

  2. Google Search Appliance Maintenance | Aggie Webmasters on September 24th, 2009

Leave a comment