| Integrate Google CSE Custom Search Engine in Joomla |
|
Google Custom Search Engine in Joomla integration
More and More people are informed about the fact that Google now offers you the possibility to integrate a Custom Search Engine into you website.
Update 21-12-2006:
With Open-Sef or another SEF component that gives you an .html or .php extenstion it works fine.
Just an extra reason to implement a proper sef component :-)
P.s. The procedure for an external page result, so that is not framed inside your tamplate works wothout a problem, since this is an extrenal link from Google.
Maybe You have seen the effect of such a search engine on this website.
How does the Google Custom Search Engine work
Actually this functionality of the Custom Search Engine for your website is pretty simple.
Advantage of a Custom Search Engine
Step by Step instruction on Joomla integration of Google CSE First thing is, you need a gmail account from Google to login into the webmaster help center.
The instruction that you find here, looks very extended and complex, bu I a sure you, it is not !! Just try the result by searching via the field below.
{mospagebreak title=Create the Search Engine} Create a Google Custom Search Engine for your Website
You start by following the link http://www.google.com/coop/manage/cse/create/1
In the next screen you have to fill in some information, most of it speaks for itself. At Search engine name: put in the name je want for the search engine on your site.
As for Search engine description: here you can write a fitting description for you custom search engine.
Now at Search engine keywords: here you are beginning to tweak the results and optimize them for you visitors...hte keywords you put in here are taken into account to determine more relevant search results example "Joomla" or even "Joomla seo"
The next items are the Sites to search, here you fill in the websites that should have priority in the results of your search.
Now we come to the option to search just these sites, or the whole Internet.
Further more you have an option to let other people work with you to put in more preferred sites into the URLs section..
And af course you have to agree to the Terms of Service.
If you click "next" you are ready.....that is with the creation of you special search engine.
{mospagebreak title=CSE Integration in Joomla}
How can you integrate the Search engine into your Joomla site
To integrate the Google CSE, we first need to get the coding for the Custom Search Engine.
Choose here "Code"
{mospagebreak title=Search Engine Results Page} Create the Search Results Page
You want to fit the results page into the layout of your website, as a page that fits perfectly into your Joomla website.
Go back to the control panel , choose code and now choose the second option.
Now we need to create a new page in Joomla.
Now give this page a smart titel to fit the content, on this site it is called "Pathos SEO Search Engine".
In this page you copy the code that you find in the Second part of the code page, this it the coding for the Search results page.
If you paste the code, take care it is really the inserted as pure HTML code , for me that is easy, because i work with the JoomlaFCK editor.
I gave this page a menu link to make sure that I got the right URL to make it easier to copy and past it into the Google code for the results page.
The URL of the page you just created you have to copy into the first coding option You really should see the code change in the first section of the screen.
{mospagebreak title=CSE Module creation}
Google Custom Search Engine Module
We are going to make a special Search Engine Module for website integration. Go into the administrator section Site Modules , choose "New".
Paste the code into the "Code" field form the first section of the Google screen.
You will find out that the color layout doesn't fit your site yet, but that the results page in nicely integrated into the template.
Change the Look and Feel Custom of your Search Engine
Go back to the Google "Control panel" and now choose for "look and feel".
Here you can change a number of items to make them fit to your CSS layout items.
If you have done everything the right way, you now have your own Google Custom Search Engine in your Joomla website. P.s. if you have a Google adsense account, you can attach this to you account. |