Welcome to CrankyGoblin.Com Sign in | Join | Help

Public Class GeoffAppleby

Inherits Microsoft.VisualBasic.MVP : Implements IBrainFart
Searching the Goblin

After Grant yesterday blogged about search providers in IE7, I thought I might look into what it would take to implementing one here at CrankyGoblin.

It ends up that it's a lot easier than I would have thought - there's no need to edit a single file in the CommunityServer source base, or even in the skins.

When you're logged into CommunityServer as an administrator, you can specify extra HEAD information in the Site Settings - in the Raw Header section of the Site Content pane. So to this I added the following tag:

    <link title="CrankyGoblin Blogs" type="application/opensearchdescription+xml" rel="search" href="http://blogs.crankygoblin.com/CrankyGoblinSearch.xml" xmlns="http://www.microsoft.com/MSCOM/MNP2/Schemas" />

By saving it here, it gets rendered in the HEAD section of every page in the CS site.

Then all I had to do was write the xml file that the link links to, which I wrote like this:

<?xml version="1.0" encoding="UTF-8" ?>

<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">

    <ShortName>CrankyGoblin Blogs</ShortName>

    <Description>Search Blogs.CrankyGoblin.Com</Description>

    <Url type="text/html" template="http://blogs.crankygoblin.com/search/SearchResults.aspx?q={searchTerms}" />

</OpenSearchDescription>

I uploaded this file (saved as CrankyGoblinSearch.xml) to the site, and it's all done. Now whenever someone is at blogs.crankygoblin.com, every page will light up as searchable and give the user the option to install the search provider.

So now my only question is: should the link be on every page on the site, or limited to just a few of the pages? Is it wrong to have it on every page? I'm not sure...

Posted: Sunday, 30 April 2006 5:24 PM by Geoff Appleby
Filed under: ,

Comments

Public Class GeoffAppleby said:

Yes, I know this is more than 6 months old now, but lately I've been doing a lot of reinstalling and...
# June 2, 2006 3:41 AM

Public Class GeoffAppleby said:

Well, it's been a couple of hours since I said I might get the upgrade to CS 2.1 done over the next couple...
# September 2, 2006 7:47 AM

Public Class GeoffAppleby said:

Well, it's been a couple of hours since I said I might get the upgrade to CS 2.1 done over the next couple...
# September 2, 2006 7:49 AM

Public Class GeoffAppleby said:

This is quite neat. When the non-RTM builds of IE7 were floating around, you had the opportunity to write

# October 22, 2006 4:16 PM
Leave a Comment

(required) 

(required) 

(optional)

(required) 

To submit your comment, click on these pictures:
  • Teenage Mutant Ninja Geoffy!
  • Geoff's hand
  • Geoff's foot
Gaptcha Image - No Peeking! Gaptcha Image - No Peeking! Gaptcha Image - No Peeking!
Gaptcha Image - No Peeking! Gaptcha Image - No Peeking! Gaptcha Image - No Peeking!
Gaptcha Image - No Peeking! Gaptcha Image - No Peeking! Gaptcha Image - No Peeking!
Can't recognise the people in these pictures? Look here for a quick introduction.
There's a time limit for you to get your comment submitted before this set of pictures expires. If you think it's been longer than 10 minutes, get some new pictures first (you won't lose what you've typed so far).
Get some new pictures 

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS