Easy OpenSearch

Friday, February 9, 2007

Via Mark Pilgrim: Add OpenSearch to your site in five minutes

Reading that, it occurred to me that it should be pretty easy to create a Movable Type template for the XML file. Fortunately, I didn’t think about it too long before Googling it — Firefox Magazine has complete instructions for doing this. One change I would suggest: Abstract the template even more by using MT tags for the search URL. To do so, change line 13 to this (line break added to simplify my life):

template="<$MTCGIPath$><$MTSearchScript$>?search= {searchTerms}&amp;IncludeBlogs=<MTBlogID>">