This shows you the differences between two versions of the page.
Next revision | Previous revisionLast revisionBoth sides next revision |
tips:google-cse [2015/09/02 23:20] – created Giuseppe Di Terlizzi | tips:google-cse [2016/01/15 23:28] – Giuseppe Di Terlizzi |
---|
====== DokuWiki and Google CSE with a stand-alone search result page ====== | ====== DokuWiki and Google CSE with a stand-alone search result page ====== |
| |
{{:wiki:dokuwiki-128.png?nolink&64 |}} Integrate the Google CSE (Custom Search Engine) in your DokuWiki installation with a stant-alone search result page (adapted from [[https://developers.google.com/custom-search/docs/tutorial/implementingsearchbox|Google CSE - Implementing search box]]). | {{:wiki:dokuwiki-128.png?nolink&32 |}} Integrate the Google CSE (Custom Search Engine) in your DokuWiki installation with a stand-alone search result page (adapted from [[https://developers.google.com/custom-search/docs/tutorial/implementingsearchbox|Google CSE - Implementing search box]]). |
| |
===== Add a CSE script ===== | ===== Add a CSE script ===== |
Now you can trigger search results on this page by passing a ''q'' argument in the url: | Now you can trigger search results on this page by passing a ''q'' argument in the url: |
| |
http://example.org/dokuwiki/search?q=myQuery | http://example.org/dokuwiki/search?q=myQuery |
| |
:!: NOTE: If you use the ''<html>'' tag, enable the [[doku>config:htmlok]] option. | <callout type="warning"> |
| === Note === |
| If you use the ''<html>'' tag, enable the [[doku>config:htmlok]] option. |
| </callout> |
| |
| {{tag>dokuwiki tips google cse}} |