PDA

View Full Version : Squeezebox wiki & Firefox's search engine dropdown



Mark Lanctot
2009-01-08, 12:00
I'm probably the only one interested in this, but in case anyone else is, the Squeezebox wiki index page:

http://wiki.slimdevices.com/index.php/Special:Allpages

seems to be a "searchable" page for Firefox 3.0.5.

If the page is "searchable", I believe the searchbox dropdown list at the top right turns blue. If you click on the dropdown box you will see an "Add SqueezeboxWiki (English)" entry. Do that and you'll have a nice new searchbox with a little SB Classic as an icon.

Now - here's why I may be the only one interested in this - it isn't a great search, it seems to require the exact wiki page name before it finds anything :) but since I know a few of them off the top of my head it helps me at least.

peter
2009-01-08, 12:53
Mark Lanctot wrote:
> I'm probably the only one interested in this, but in case anyone else
> is, the Squeezebox wiki index page:
>
> http://wiki.slimdevices.com/index.php/Special:Allpages
>
> seems to be a "searchable" page for Firefox 3.0.5.
>
> If the page is "searchable", I believe the searchbox dropdown list at
> the top right turns blue. If you click on the dropdown box you will
> see an "Add SqueezeboxWiki (English)" entry. Do that and you'll have a
> nice new searchbox with a little SB Classic as an icon.
>
> Now - here's why I may be the only one interested in this - it isn't a
> great search, it seems to require the exact wiki page name before it
> finds anything :) but since I know a few of them off the top of my head
> it helps me at least.
>

Well, it was interesting enough for me to have created the same
integration in one of my websites.

Was easy ;)

Regards,
Peter

JJZolx
2009-01-08, 13:13
The Firefox search isn't actually searching _in_ that particular page. It just populates the wiki's search box and runs the standard search. But this is better, since it's doing both article title and body text searches.

Mark Lanctot
2009-01-08, 13:33
Ha! I just noticed it does the same thing for Bugzilla too.

Now - is this coded into the page somewhere or is it a new Firefox feature, that when it sees a search box it offers to put it in the dropdown?

peter
2009-01-08, 14:11
Mark Lanctot wrote:
> Ha! I just noticed it does the same thing for Bugzilla too.
>
> Now - is this coded into the page somewhere or is it a new Firefox
> feature, that when it sees a search box it offers to put it in the
> dropdown?
>

It's coded in the page.
It's based on the OpenSearch specification ( http://www.opensearch.org/
). Works in both FF and IE.

It works this way:

- You add an xml file to your site that contains the search engine
description, here: http://wiki.slimdevices.com//opensearch_desc.php
- You add a link tag to the HTML of the pages you want the search engine
to be installed from:
<link rel="search" type="application/opensearchdescription+xml"
href="/opensearch_desc.php" title="SqueezeboxWiki (English)" />

I personally think a link 'add the wiki searchengine plugin to your
browser' would be more effective. I think you more or less stumbled upon it.

I just implemented both methods to my website. Thanks for the tip!

Regards,
Peter