site  contact  subhomenews

shellCMS now has a search box

September 09, 2017 — BarryK

The search box is at the top of the "Barry's News" page. It could be placed on other pages.

It is a simple html form, using Google. very simple.

The config file in shellCMS has variable search_box_pages, which specifies on what pages (or none) that the search box is to appear.

I made a submission to Google to spider my site, however, at the time of writing this, it is far from complete, showing many links that no longer exist.

I need to do some experimenting, as the box width is not displaying correctly on my browser. In the <form> tag, there is the <input> tag, with size="20", which according to online docs, is supposed to set the width of the box to 20 characters. But it doesn't.

EDIT
Have changed the search box to the official one from duckduckgo, created here:

https://duckduckgo.com/search_box

Have created a variable search_box_engine, to be able to offer a choice of search engine. Currently it is search_box_engine="duckduckgo"

I was reading about duckduckgo. Apparently it does not do much web crawling. Instead it probes other search engines, in particular Bing. So there is nowhere to submit a URL to duckduckgo, have to submit to Bing, then duckduckgo will pick it up.
Which won't happen immediately, and I read some complaints on how long that takes. So, there is a downside to duckduckgo.  

EDIT2
Have got the google search box working. Which is what you see above. Enter a search term, and it will open in a new browser tab, and search the site.

The variable is now search_box_engine="google"

There is still a problem. I cannot change the width of the search box. Tried "width" style, the "size" parameter, no go. Just ignores everything, displays at the default width, whatever that is. Viewing with SeaMonkey.

Tags: shellcms