Translate Content

Joomla Search

Pro Templates

Don't pay a fortune for a professional Joomla template.

  • Eye catching designs...look professional
  • XHTML valid...better by design
  • CSS Driven...faster and lightweight
  • SEO ready...get traffic

Get a solid foundation for your Joomla website

Get Our Newsletter!

Want the latest Joomla and Joomlashack news via email?

How about exclusive monthly discounts on our templates and special offers from our favorite partners, available only to our subscribers.

Subscribe now to our newsletter!

Free Templates

Browse the biggest choice of free Joomla templates around!

  • Quality design
  • Free customization forum
  • Continuously updated
  • Same Joomlashack quality

Download your free Joomla Template now

The Joomla 1.5 Book

Get the have-to-have book about Joomla 1.5 from Amazon.com. and get free access to the companion site, joomlabook.com.

We Recommend

Start sending personalized email newsletters to your prospects and customers today. Learn more about IContact email list management software and start a 15 day free trial.

How to add OpenSearch to your Joomla website
Last Updated ( Friday, 08 June 2007 06:36 )

I found a story on Digg today which sounded interesting. If you use Firefox 2 or Internet Explorer 7 then you'll notice a litle search bar at the top of your window which looks something like this. The way to achieve this is so simple. You can read more into it here or just follow along to get it working in Joomla!

FF2opensearch 

I found a story on Digg today which sounded interesting. If you use Firefox 2 or Internet Explorer 7 then you'll notice a litle search bar at the top of your window which looks something like this. The way to achieve this is so simple. You can read more into it here or just follow along to get it working in Joomla!

At first glance you may think this is a some hack job into the Google search API or your browser mainframe but looking a little deeper, you can see this little site is hosted by on the a9 servers which is none other than Amazon so I can be pretty safe by assuming this is a solid add-on to websites with a good amount of content. Surely, you can expect to see this more and more around the web.

How to do it:

All you need to do is copy and paste the following text into a blank text file and name it opensearch.xml.  

<opensearchdescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
<shortname>[SITE NAME]</shortname>

<description>Use Google to search [SITE NAME]</description>

<tags>[SITE HOST]</tags>

<url type="text/html" template="http://www.google.com/search?q=site:[SITE HOST]{searchTerms}"></url></opensearchdescription>

Replace [SITE NAME] with your title and and [SITE HOST] with your main domain URL and just upload it to your web server root. The next step is to open your template's index.php file and add this bit of text anywhere inside the <head></head> tags.

<link rel="search" href="/http://www.YOURDOMAIN.COM/opensearch.xml"
type="application/opensearchdescription+xml"
title="YOUR SEARCH TITLE" />

Thats it! You're done.

This is only a feature of IE7 and Firefox 2 so if you're using IE6 or an older version of Firefox, you won't be able to see it, but give it some time and it'll surely be of good use to someone. I'm hoping users will use it to search our forums a little closer for existing answers :)

 

 


blog comments powered by Disqus
 

Advertise Here

Joomlashack designs free and commercial Joomla Templates
Learn how to Joomla with our Joomla Training or join our lifetime Joomla Template Club

Copyright 2005-2009 Joomlashack. All rights reserved unless otherwise stated.
The Joomla! name is used under license from Open Source Matters.