Simon,
To clarify (slow on uptake today) this uses the Google API to return items only from the Site and NOT from Google itself?
CHRIS
Simon Wells (K2 Support) said:Hi Chris,
Yes, that is correct.
K2 is using the Google API to search your site only, it will not return results from other domains.
Simon
Chris Yates said:Simon, Your google search on K2Joom Docs isn't working either!
Tried it using several simple terms like "bbc"and "cnn" and so forth and it's returning nothing other than two articles on your site!!
Be Well,
CHRIS
Chris Yates said:Simon, Thanks the advice and will check that out when I get time out from the busy day today.
While you're there at the other end let me ask you another quick question.
Can the K2 plugin be used to insert Google Adsense code and if so how the blazes is it done since haev looked at the code and can't get my head around it (that maybe something to do with only having had 8 hours sleep in the last 48 hours though)?
Don't want to use the loadposition method since this is is a messy solution.
Thanks in advance any advice on this score.
Be Well,
CHRIS
Simon Wells (K2 Support) said:Hi Chris, I have run some further tests after discussing and can confirm that this function is working. Here is an update on what to do.
In the K2 Parameters, there is a field called Container ID to render the Google search, which as default is filled with k2Container.
I changed this to mainContent and I was then able to see results displayed.
You can test this at
k2joom.com/docs
There your will see two search forms, the top is the K2 version which will return results using Google Search.
There are two main reasons why results might not be displayed.
1) The template used might not have div k2container setup for the K2 search page.
2) A newly developed site may not have been indexed.
3) If you are running on a local system.
Try testing using a joomla and K2 search module on the same page.
Search for a known word in the Joomla search and then use firebug to check which container the results are displayed in.
Enter that information in to the K2 parameters as mentioned above, save, then refresh your page and test the K2 version.
Let us know how you get on.
Simon
K2 Support