dereuromark/cakephp-opensearch

A CakePHP plugin for using OpenSearch

dev-master 2014-07-23 22:14 UTC

This package is auto-updated.

Last update: 2024-10-13 10:57:07 UTC


README

Create a nice web search that integrates into modern browsers (direct search using TAB).

See http://de.wikipedia.org/wiki/OpenSearch

CakePHP2.x

Installation

Composer

This is the preferred way of installing:

"require": {
	"dereuromark/cakephp-opensearch": "dev-master"
}

Manual

Copy the plugin over to your App/Plugin/ directory.

Preparation

  1. Create appropriate table (cake console: cake schema create OpenSearch.OpenSearch)
  2. Create an action for performing searches
  3. Add at least one search type (via backend admin/open_search/addons/ for example)

Usage

Use the helper to render appropriate links in the layout:

$this->loadHelper('OpenSearch.OpenSearch');
echo $this->OpenSearch->metaLink('web', 'my title');

for example, if you added web as search type.

TODO

Cleanup and more features from http://www.opensearch.org/

Dependencies

My Tools Plugin for admin backend actions (optional, you can directly use Mysql, as well).

Licence

MIT

Łukasz Korecki 2009

Mark Scherer 2012