From Svartálfaheimr to Asgard: Using Google Search on your page
Using Public Safety as an example.
An XML file must be made for a specific page and stored in webroot/search. Here is the file for Public Safety:
http://www.isu.edu/search/pubsafe_search.xml
<?xml version="1.0" encoding="UTF-8" ?>
<GoogleCustomizations>
<CustomSearchEngine>
<Title>Public Safety Search Engine</Title>
<Description>Content from the Public Safety web site of Idaho State University</Description>
<Context>
<BackgroundLabels>
<Label name="pubsafe_search" mode="FILTER" />
</BackgroundLabels>
</Context>
<LookAndFeel nonprofit="true">
<Colors url="#008000" background="#FFFFFF" border="#FFBB66" title="#0000CC" text="#000000" visited="#663399" light="#000000" />
</LookAndFeel>
</CustomSearchEngine>
<Annotations>
<Annotation about="www.isu.edu/pubsafe/*">
<Label name="pubsafe_search" />
</Annotation>
</Annotations>
</GoogleCustomizations>
This is the code from their navbar:
<!-- Google CSE Search Box Begins -->
<form id="pubsafe_search" action="http://www.isu.edu/search/">
<input type="hidden" name="cref"
value="http://www.isu.edu/search/pubsafe_search.xml" />
<input type="hidden" name="cof" value="FORID:11" />
<input name="q" type="text" size="15" /><input type="submit" name="sa" value="Search" />
</form>
<script type="text/javascript" src="http://www.google.com/coop/cse/brand?form="></script>
<!-- Google CSE Search Box Ends -->
