Tuesday, September 29, 2015

Adding search to your site

For many years, I used ATOMZ, a simple and free search engine utility,  to add a search feature to my site.  Long story, but Atomz was bought and killed in 2014 and was a bit buggy for a few years before that.

Searching within a site requires a server-side program to index the site and another to search the index database and spit out the results.  It's not trivial.  You can get pre-made search programs (like Zoom from Wrensoft) or use a service.  If you host your own scripts, you'll have more flexibility with the output (including no ads), but you have to set it all up.  Search services are either paid or show ads.  I decided to use Google Custom Search because it's free and fairly easy.  I may switch later since it doesn't look like I can set up regular indexing the way I could with atomz.  :-(

It was a bit confusing setting up the custom search within the Bootstrap nav bar --  it took an hour or two to figure out how to set up the search box on one page and the search results on another,and the formatting looked odd until I found info on the Bootstrap site about box formatting.

more info:

Monday, September 28, 2015

Bootstrapping

I decided to use Bootstrap for my Cuyahacka.com redesign.  I'm not completely sold on Bootstrap -  it's very heavy and the code isn't as refined as I like.  To use Bootstrap, you end up with clunky nested divs and it's more code than if you did an elegant design with descendant selectors.

Still, the responsive part works well, as does the navigation.

Here are some bootstrap resources I found useful:
more Bootstrap links on Delicious