2011-01-21, 07:21:32
My I18N Search plugin (http://get-simple.info/extend/plugin/i18n-search/82/) allows you to search for tags (keywords) and words. It uses an automatically created index and orders the results by relevancy (number of occurences, title is more important than content, etc.).
Each result entry includes the title, the language (if used together with the I18N plugin), the date and an excerpt of the page. It can be styled with CSS or the results can be retrieved as array, in which case you are responsible for creating the HTML.
The plugin is fully configurable and optimized to work on multi-language sites together with the I18N plugin (http://get-simple.info/extend/plugin/i18n/69/), but will also work standalone.
Installation
Unzip the plugin (http://get-simple.info/extend/plugin/i18n-search/82/) to your plugins directory.
Include jQuery in your template, unless you use the simple search form with
Usage
Create a page with slug/URL 'search' (or any other name) and include the following text:
Go to this page and search.
You can use this plugin to display news and to generate RSS feeds.
To (additionally) include a search form in the template (which uses the 'search' page to display the results), use
For more information see the configuration page (Plugins/Configure I18N Search) in the Admin back-end.
Also see I18N Search, I18N Search for News & Blogs and Generate RSS feeds with I18N Search.
Example
See http://mvlcek.bplaced.net/search for an example.
For Developers of other plugins
Version 2.0+ supports indexing of custom fields (see I18N Custom Fields) and of other non-page data (plugin developers: see attached example plugin - i18n_search_dummy.zip).
Each result entry includes the title, the language (if used together with the I18N plugin), the date and an excerpt of the page. It can be styled with CSS or the results can be retrieved as array, in which case you are responsible for creating the HTML.
The plugin is fully configurable and optimized to work on multi-language sites together with the I18N plugin (http://get-simple.info/extend/plugin/i18n/69/), but will also work standalone.
Installation
Unzip the plugin (http://get-simple.info/extend/plugin/i18n-search/82/) to your plugins directory.
Include jQuery in your template, unless you use the simple search form with
Code:
(% searchform showTags:0 ajax:0 %)
Usage
Create a page with slug/URL 'search' (or any other name) and include the following text:
Code:
(% searchform %)
(% searchresults %)
Go to this page and search.
You can use this plugin to display news and to generate RSS feeds.
To (additionally) include a search form in the template (which uses the 'search' page to display the results), use
Code:
<?php get_i18n_search_form(array('slug'=>'search', 'showTags'=>0)); ?>
For more information see the configuration page (Plugins/Configure I18N Search) in the Admin back-end.
Also see I18N Search, I18N Search for News & Blogs and Generate RSS feeds with I18N Search.
Example
See http://mvlcek.bplaced.net/search for an example.
For Developers of other plugins
Version 2.0+ supports indexing of custom fields (see I18N Custom Fields) and of other non-page data (plugin developers: see attached example plugin - i18n_search_dummy.zip).