Open Search Description (press tab to search)

1

I made a system extensions for the company and wanted to implement in this system the "tight tab (tab) to search" that I see on various websites. I've done it in every possible way and I can not seem to make it happen.

The xml code I use looks like this:

I'vealreadymadesurethelinkisright.

Here'stheexampleofwhatIwanttohappen:

Andfinally,asystemprint,withthesearchexampleintheurl

And another question I have, does OpenSearchDescription work on localhost, or only on websites?

    
asked by anonymous 05.01.2017 / 15:03

1 answer

1

You need to put the XML path in tag <head> of your application:

<head>
    ...
    <link href="<%= Url.Content("~/Content/OpenSearch.xml") %>"
        rel="search"
        title="Pesquisa no Meu Sistema de Ramais"
        type="application/opensearchdescription+xml" />
    ...
</head>
  

And another question I have, does OpenSearchDescription work on localhost, or only on websites?

It's to work on both.

    
09.05.2017 / 20:24