Coder Social home page Coder Social logo

helpfulrobot / sunnysideup-googlecustomsearch Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sunnysideup/silverstripe-googlecustomsearch

0.0 2.0 0.0 62 KB

incorporate google custom search in your Silverstripe project.

License: Other

PHP 60.30% CSS 0.26% JavaScript 36.39% Scheme 3.05%

sunnysideup-googlecustomsearch's Introduction

Google Custom Search Module for SilverStripe

A simple extension to add a Google Custom Search to your SilverStripe template.

It allows you to add a search form to any page, which will give instant ajaxified results within 200ms or so, as well as allowing the user to go through to a more advanced search page.

Developer

Nicolaas Francken [at] sunnysideup.co.nz

Requirements

see composer.json

Documentation

Please contact author for more details.

Any bug reports and/or feature requests will be looked at in detail

We are also very happy to provide personalised support for this module in exchange for a small donation.

Installation Instructions

  1. Find out how to add modules to SS and add module as per usual.

  2. Review configs and add entries to mysite/_config/config.yml (or similar) as necessary. In the _config/ folder of this module you can usually find some examples of config options (if any).

  3. add <% include GoogleSiteSearchForm %> to any of your templates

  4. Make sure to run /dev/build/?flush=all

  5. create / edit the GoogleCustomSearchPage in your CMS (should be created automagically).

  6. to customise, you can edit / theme the following files:

    • googlecustomsearch/css/GoogleCustomSearchPage.css
    • replace methods and variables in the Javascript files
    • theme the templates
    • extend the GoogleCustomSearchPage as per usual

Setting up a Google Custom Search Account

  • Go to https://www.google.com/cse/create/ and create your search engine

  • Select the look and feel, configure all the options

  • If you click on the "Basics" link, you will see your Search engine unique ID

  • You will also need to:

    a. pay for your custom google search engine OR

    b. setup a google API key (this was a real pain to do!)

Super useful links (you are gonna need this ;-))

sunnysideup-googlecustomsearch's People

Watchers

James Cloos avatar helpfulrobot avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.