Changed the way search modules get integrated with the theme via a new region "search".

Improved current module for google search 2.0.
This commit is contained in:
Jocelyn Fiat
2017-04-06 14:02:20 +02:00
parent e062429871
commit ad2b30f52b
12 changed files with 72 additions and 34 deletions

View File

@@ -1,5 +1,13 @@
Google Custom Search Module 2.0.
https://developers.google.com/custom-search/docs/element
The current solution is based on
Results only <gcse:searchresults-only>
# Based on Google Custom Search Engine (CSE)
- https://developers.google.com/custom-search/docs/element
- Search form provides a parameter `q` for the search query.
- Results are displayed in associated page /gcse2 (using <gcse:searchresults-only> )
# Settings
- edit the `site/modules/google_search_20/config/google_search_20.json` file, and set the value `gcse.search_engine_id`.
# How to get a Custom Search engine ID?
- See https://support.google.com/customsearch/answer/2649143?hl=en
- https://cse.google.com/all