When you use a Graph Paper Press theme for WordPress’s publishing platform and combine this with PhotoShelter’s image archiving and e-commerce capabilities, you may have noticed that there is no combined search option. As a result, you’ll always end up with two search input fields, each with their own styling and buttons. Back in January, when I was creating this website, I decided that it was worth the effort to write up some code to combine the two searches. I have already provided the code to many PhotoShelter colleagues, but until now I didn’t find the time to write up documentation and make it available for download. Here it finally is however …
The NiO Dual Search widget makes it possible to combine the standard Graph Paper Presss/Wordpress blog search with the PhotoShelter image search, without needing two separate search input fields.
Please expect no magic … by implementing this widget you get rid of the two search options with differing styling. It still only returns the results from one of the two however, depending on which of the two available options is selected.
The NiO Dual Search widget:
www.niophoto.com uses the widget on the home page and in the sidebar of the blog. The “niodualsearch/samples” directory (part of the download) contains an html example of the widget (“NioDualSearchSample.html).
The NiO PhotoShelter Dual Search widget can be downloaded using the link provided below. The download contains all source code, a sample page as well as installation documentation.
Click to download version 1.0.3:
If you like the widget and decide to use it, please donate, blog about it or provide a credit on your site with a link to my site (http://www.niophoto.com). Feedback and suggestions for future development are also very welcome.
The widget is free software: it can be redistributed and/or modified under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version. The widget is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.