Custom Search

When using the application template, you have the ability to use a custom search engine for your site.

Implementation

Customization of the search is done through the customSearch parameter in the appTop section of your page.

There are a few configuration options:

defTop.outerHTML = wet.builder.appTop({
...
    "customSearch": [{
        "action" : "https://www.canada.ca/en/sr/srb.html",
        "placeholder" : "Canada.ca",
        "id" : "wb-srch-q",
        "name" : "q",
        "method" : "get",
        "hiddenInput" : [{
            "name" : "cdn",
            "value" : "canada"
        }]
    }]
...
});