Quickly add Temple site search to your website.
Site Search is a free tool available for all Temple University Websites. Temple Site Search is used on all official Temple University websites.
To use the Temple Site Search directly, please visit search.temple.edu. To add a custom search form to your site, please read on.
Please note that the following changes should only be performed by an experienced HTML developer.
Insert the following new code within the HTML of your template or web page where you want the search box to appear:
<!-- START Google Site Search box --> <form action='http://search.temple.edu/search.php'> <label for="TempleSearch" style="border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden; padding:0;position:absolute;width:1px;">Search</label> <input type='text' placeholder='Search' id="TempleSearch" name='searchString' title="Search Temple University" size="25" /> <input type='submit' value='Search'/> <input type='hidden' name='searchFolder' value='' /> </form> <!-- END Google Site Search box -->
Limit Search to your Website
To limit search results to your website, edit the line reading:
<input type='hidden' name='searchFolder' value='' />
And add a URL inside the quotes at
<input type='hidden' name='searchFolder' value='computerservices.temple.edu' />
The results for your search will now only come from the specified websites within Temple University. See below for information on all of the supported values of this field.
Advanced Search Form Options
The form can send one or more additional input parameters as follows:
|searchFolder||Any URL segment||
If a value is included, the results will only come from certain sites or folders within any Temple sites indexed by the site search. For example if this parameter is
This value selects whether you want to perform a search using our site search (
This option sets the number of results to display per-page for your search. (If this option is not set the default is
||If this parameter is included, the results will be returned as an XML document.|
How to get pages into the search index?
Google Site Search uses the Google index. All you need to do to get your web pages into the Temple/Google index is:
- Put the pages up on a web server
- Make sure your pages don't contain meta tags that prevent the robot from indexing your page
- Submit your page for indexing by Google's crawler and/or have your page linked to by other pages in Google's index like the Temple Site
- The Google crawler will pick up all updates automatically when it visits your web site. Content crawl frequency is dependent on how important Google's algorithm believes it to be. For instance, pages that Google believes to be important and quickly changing are crawled frequently, while others are crawled less frequently (up to two weeks before being revisited).
If you would like your pages to be listed in the Temple Site index please submit a support request at Request Help tab on the Computer Services home page.
Note that if your web pages do not have any external links from other pages in the Temple search collection, they won't be picked up by the Google crawler.
How do I keep pages out of the index?
If you don't want a page to be indexed, insert this
<meta>tag within your page's
<meta content="noindex, nofollow">
This will prevent crawlers (robots) from indexing the page, and from following any links from the page. If the page has already been indexed, it will be removed from the index the next time Google crawls the page.
What domains are included in Temple's configuration of Google Site Search?
Temple's search collection includes web pages from:
- temple.edu sub-domains
If you would like to add your web site domain to the search index please submit a support request using the Request Help tab on the Computer Services home page.
Does Google Custom Search index restricted content?
No. Google Site Search does not index or crawl any restricted content protected behind the firewall or a login.