WebHelp Responsive Google Search
Posted: Mon Oct 28, 2024 6:48 pm
I've been trying to get the search box on our WebHelp Responsive documentation page to work with Google Search and, unfortunately, nothing seems to be working.
Could I ask for an updated guide, from scratch, with details, of how to obtain it, please?
I've followed this guide exactly, with the publishing template, and it's not working: https://www.oxygenxml.com/doc/versions/ ... nsive.html
The result is: when I turn off indexing in Oxygen Feedback (the search in Feedback is not satisfactory for my peers, hence why trying Google instead), I either get the results from the built-in one (with the 5-star rating), or I get an empty page, depending on what is the content of the googlecse.html file (whether it's in the same format as you have in your documentation but with my cx identifier, or whether it's the new format obtained after clicking "Get Code" on the CSE page).
The script obtained from Google using "Get Code" is completely different than the example script. It's:
<script async src="https://cse.google.com/cse.js?cx=xxxxxxxxxxxxxxxxxxxx">
</script>
<div class="gcse-searchresults-only"></div>
Also, are the steps in the link above the *only* steps needed? Is defining the webhelp.google.search.results parameter the *only* required step for the results to be shown just as with the built-in JS search or Oxygen Feedback?
Thanks in advance!
Could I ask for an updated guide, from scratch, with details, of how to obtain it, please?
I've followed this guide exactly, with the publishing template, and it's not working: https://www.oxygenxml.com/doc/versions/ ... nsive.html
The result is: when I turn off indexing in Oxygen Feedback (the search in Feedback is not satisfactory for my peers, hence why trying Google instead), I either get the results from the built-in one (with the 5-star rating), or I get an empty page, depending on what is the content of the googlecse.html file (whether it's in the same format as you have in your documentation but with my cx identifier, or whether it's the new format obtained after clicking "Get Code" on the CSE page).
The script obtained from Google using "Get Code" is completely different than the example script. It's:
<script async src="https://cse.google.com/cse.js?cx=xxxxxxxxxxxxxxxxxxxx">
</script>
<div class="gcse-searchresults-only"></div>
Also, are the steps in the link above the *only* steps needed? Is defining the webhelp.google.search.results parameter the *only* required step for the results to be shown just as with the built-in JS search or Oxygen Feedback?
Thanks in advance!