Basic Search Code Using the Collection (Site) Parameter
Basic "Search this Site" Code
To add a basic "search this site" form to your site, you need only add the following form code to your site with a few modifications.
- First, copy the following code and paste it into a blank HTML document.
- Next, make the following edit to this line of the code:
-
<input type="hidden" name="site" value="your_collection"/>
Replace "your_collection" with a collection that corresponds to your search domain(s).
What is my collection?
What if I can't find a collection which contains domain(s) that I wish to have searched?
-
<input type="hidden" name="client" value="your_frontend"/>
<input type="hidden" name="proxystylesheet" value="your_frontend"/>
Replace "your_frontend" with a frontend that corresponds to your department or agency.
What is my frontend?
-
<input type="hidden" name="site" value="your_collection"/>
- Additional (optional) edits you can and cannot make:
- You can change the size of the search input box (it defaults to "40.")
- You can add an image for the search button, but do not change
the name="btnG" parameter.
- You can use a table to control the layout of the form, but do
not break up the form into separate tables or the code will not work.
- You can use style sheets to control the layout of the form (recommended
over using tables)
- See the instructions on customizing
for more.
- You can change the size of the search input box (it defaults to "40.")
- Upload your form code and test it out. Search results should be within your site.
