
This tutorial will show you step by step how to create a Google custom search engine for your Joomla site (and/or another site) in your Joomla site. This tutorial uses Joomla 1.5 but you can use exactly the same steps on Joomla 1.6. Download![]() We are going to be using an excellent Joomla extension called googleSearch (CSE) component . Click here to go directly to the download page. Download the extension of your respective Joomla version. Install![]() Go to Extensions >> Install/Uninstall >> Browse... >> Upload File & Install Set Up Custom Search Engine in Google![]() Click here to go to the Google Custom Search Engine Configuration page directly. Click on Create a Custom Search Engine. ![]() The first step (1. Setup up your search engine) is self-explanatory. Configure appropriately. The only tricky part is the syntax for the "Sites to search". In the example, I have it so that only results from www.ostraining.com and www.joomlatraining.com show up in the search. Formatting your URLs
Click Next when finished. ![]() In the second step (2. Try it out) we only have to test the search engine to see if we correctly configured the URLs in step 1. There is no need to customize because we will do that in the Joomla administrator. In the example screenshot above, I tested with the keywords "Joomla Training". The results only bring up results from www.ostraining.com and www.joomlatraining.com, which is what I wanted. Test the search. If the results are not what you wanted, go back to step 1. Click Next when finished. Get the Custom Search Engine's unique identifier![]() The last thing we need is the Custom Search Engine's unique identifier. The easiest and less confusing approach for most people is to copy it from the control panel. Click here to go to the management area. Click on Control Panel. Copy the unique ID. Configure Joomla Component![]() Go to Components >> googleSearch (CSE) ![]() Paste the ID in the Custom Search Engine's unique identifier field. The custom the rest according to your preferences.
![]() Save. Create the Menu Item![]() Finally we need to create the menu item. Go to Menus >> Your menu ![]() Click on New. ![]() Click on googleSearch (CSE) ![]() Configure appropriately. Give it at least a Title and then Save. Test![]() Go to the menu item in the front end and test your search. |

With Admincredible you can update and manage all your Joomla sites. If you have 5 or 500 sites, Admincredible will make your life easier! Visit Admincredible.com.
All of our tutorials are published under the Creative Commons Attribution-NonCommercial license. This means:
Open Source Training is not affiliated with or endorsed by the Joomla, WordPress or Drupal projects.
All product names and trademarks are the property of their respective owners.
Copyright 2013 Open Source Training, LLC. All rights reserved.
Comments
That's correct it's for Joomla 1.5. You can try JMGoogleSearch instead which is 1.6 native so it should work in 1.7 as well:
extensions.joomla.org/.../...
Kind regards,
Nick
I installed and it seemed to work, but when I went to input my ID, it was not in my Components. In time, I found it listed in plug-ins, but nowhere else.
Thinking something went wrong, I tried to uninstall, but I got an error, though it was no longer in plug-ins.
Any thoughts on how I might clean this up and potentially get it to work?
thank you,
Sea