Support Chrome's omnibox search

Announcements and discussion for PInvoke

Support Chrome's omnibox search

Postby drewnoakes » Thu May 26, 2016 1:15 pm

If you put some markup on the site:

Code: Select all
<link rel="search" type="application/opensearchdescription+xml" title="PInvoke.net" href="/opensearch.xml" />


The make opensearch.xml:

Code: Select all
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/" xmlns:moz="http://www.mozilla.org/2006/browser/search/">
  <ShortName>pinvoke.net: the interop wiki!</ShortName>
  <Description>
    PInvoke.net is primarily a wiki, allowing developers to find, edit and add
    PInvoke signatures, user-defined types, and any other information related to calling
    Win32 and other unmanaged APIs from managed code (written in languages such as C# or VB.NET).
  </Description>
  <InputEncoding>UTF-8</InputEncoding>
  <Url type="text/html" method="get" template="http://pinvoke.net/search.aspx?search={searchTerms}&namespace=[All]"/>
</OpenSearchDescription>


Then when people type "pinvoke.net" into Chrome (and other browsers) there's an option to search directly from the chrome omnibox. This is a great usability feature! And it's very easy to add to the site.

Some more information here.

http://stackoverflow.com/questions/7630 ... -your-site
drewnoakes
 
Posts: 3
Joined: Thu May 26, 2016 9:44 am

Return to PInvoke.Net

Who is online

Users browsing this forum: No registered users and 1 guest