This HowTo describes step by step how to add a customised Google search engine to a wikidot webpage. This is also a simple example of the use of the [[embed]] function.
The Result
This customised search engine currently searches 5 sites:
- http://wdthemes.wikidot.com,
- http://handbook.wikidot.com,
- http://snippets.wikidot.com,
- http://community.wikidot.com,
- http://www.wikidot.com
How to do it
This gadget uses the [[embed]] function described Embedding help page. However, it is difficult to find it in the Google Gadgets library at http://www.google.com/ig/directory?synd=open
1. Go to http://www.google.com/coop to create your customised Google search engine
2. Follow Google's instructions (It's so easy !)
3. Go back to http://www.google.com/coop/cse/overview and look for My search engines

4. Click on homepage

5. And then on Add this search engine to your blog or webpage

6. Click on the Get the code button
7. Paste it on your wikidot page as follows
[[embed]]
<script src="http://gmodules.com/ig/ifr?url=http://www.google.com/coop/api/007000168596185870345/cse/daaaga1ewj4/gadget&synd=open&w=265&h=65&title=Wikidot&border=%23ffffff%7C3px%2C1px+solid+%23999999&output=js"></script>
[[/embed]]
8. And the result is
Rate this solution
If you think this solution is useful — rate it up! Or dump it otherwise.
Authors
gerdami. Please visit his/her userPage.




Comments
Could not upload pictures due to page restrictions. So I linked to another wikidot location.
Er, gerdami, you are an admin, right? —hartnell
Get an ajax error when putting this embed statement into a page…
"The ajax request failed. Please check your internet connection or report a bug if the error repeats during your work". Keeps repeating…
Do you have your own google search coop code to embed? —hartnell