Agramont.net

Coding, Hosting, Software + Services....and other stuff
Welcome to Agramont.net Sign in | Join | Help
in Search

Conrad Agramont's Blog

Integrating Internet Explorer 7 Search with Community Server 2.0

Internet Explorer 7 provides a new extensibility model for the search textbox built into the shell.  After reading the documentation I wondered what it would take to integrate it with Community Server 2.0

First you must define an XML document that provides some information on your site and the "template" that should be used when submiting a search request to your site.

<?xml version="1.0" encoding="UTF-8"?>
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
  <ShortName>Agramont.net</ShortName>
  <Description>Search content on Agramont.net</Description>
  <Contact>agramont@hotmail.com</Contact>
  <Url type="text/html"
       template="http://agramont.net/search/SearchResults.aspx?q={searchTerms}"/>
</OpenSearchDescription>

The above file needs to sit on your site somewhere (I suppose it could be on another server, but that’s just kinda funky) as the next step will need to point to this file.
The next step is to leverage the “Auto Discovery”  feature of Open Search/IE7.  To do this, you must put a “link” tag in your HTML Header and point to your xml file as defined above.

To do this via Community Server for the entire site, follow the below steps:

  1. Login to Community Server as an administrator
  2. Navigate to  Control Panel > Administration
  3. Within the “Settings” left navigation tab, click on “Site Content”
  4. Enter the below “link” tag into the “Raw Header” text box
  5. Click the Save button

<link title="Agramont.net Search" type="application/opensearchdescription+xml" rel="search" href="http://agramont.net/provider.xml"></link>

At this point, you should be good to go.  Due to how Community Server caches setting information, you may need to wait 5 minutes before this goes into affect or you can “touch” the web.config file to force a reload of the CS site.

To see this at work, visit my site, http://agramont.net/ with Internet Explorer 7 (I tested this with Beta 3) and notice the icon in the textbox “light up”.

When you click on the search drop-down arrow, you should see the new search provider.

When you select the new search provider, you'll now see the "Short Name" in the textbox as a visual cue that it worked.

At this point, your search will only be available when you're currently at your site.  In order to make it available all of the time, the user will need to select your site in the "Add Search Providers" menu.

Once you do this, Internet Explorer will ask the user if they want this action to take place.

There's lots more you can do with the Open Search provider XML and you can even trigger the call to add the search provider via an html button and some Javascript, but this should get you on your way.

References:

Comments

 

Community Server Daily News said:

from the editor&amp;#39;s deskoccasional messages that don&amp;#39;t fit anywhere elseIn case you were wondering
July 5, 2006 1:12 PM
 

Newtronic said:

You may want to test out making IE7 additional search providers by using www.OpenSearchList.com which has a bunch of IE7 searches and you can add your own.
July 6, 2006 4:54 PM
 

Community Server Bits said:

Conrad Agramont provides a detailed step-by-step on Integrating Internet Explorer 7 Search with Community

March 12, 2007 10:01 AM

Leave a Comment

(required) 
(optional)
(required) 
Submit

About agramont

Conrad Agramont is a Partner Technology Specialist (PTS) focused on the Microsoft Server product lines in the Small and Mid-Market Solutions and Partners (SMSP) area for the Mid-Atlantic district. Conrad was previously the Senior Architect for a Microsoft Gold Partner where he was responsible for product planning, software architecture, and technical evangelism focusing on Service Providers around the world. Agramont was previously a Program Manager at Microsoft driving hosting scenarios and architecting components for the Microsoft Provisioning System, Service Provisioning component in Microsoft Solutions for Hosted Messaging & Collaboration, Hosted Exchange 2003, and Windows based Hosting 3.0. Conrad has over 8 years of experience in the Microsoft automation and hosting space, speaking at public events, and publishing articles in magazines. Conrad Agramont is also an active blogger focusing on many Microsoft Hosting related topics. His blog can be found at http://agramont.net/

This Blog

Syndication

Community Tools