Extension:HtdigSearch
From MediaWiki.org
|
HtdigSearch Release status: beta |
|
|---|---|
| Implementation | Special page |
| Description | ht:/Dig integration |
| Author(s) | CchantepTalk |
| Last Version | 1.0-SNAPSHOT |
| MediaWiki | 1.11.x, 1.12.x |
| License | No license specified |
| Download | here |
| Example | example 1, example 2 |
Contents |
[edit] What can this extension do?
This extension allow to integrate ht:/Dig search in your wiki. This special page acts as a mediawiki proxy on configured htsearch CGI url.
[edit] Usage
[edit] Download instructions
You can download HtdigSearch extension from there.
[edit] Installation
To install this extension, put HtdigSearch in your extensions directory, then add the following to LocalSettings.php:
require_once( "$IP/extensions/HtdigSearch/HtdigSearch.setup.php" );
Ajust values on HtdigSearch/HtdigSettings.php file :
<?php /** * Site relative url to htsearch CGI */ $htsearchUrl = '/htsearch'; /** * Configuration to be used by htsearch (see htsearch 'config' param) */ $htsearchConf = 'myHtdigConf'; /** * Wiki text before search content */ $wikiTextBefore = NULL; /** * Wiki text after search content */ $wikiTextAfter = NULL; ?>
You can verify installation opening wiki page Special:HtdigSearch .
[edit] Configuration parameters
See HtdigSearch/HtdigSettings.php
fopen for url should be enabled in your php.ini.
[edit] Encoding issue
ht:/Dig only supports iso-8859-1 charset, if your wiki is maid with another one you will have to add accept-charset="iso-8859-1" attribute to your search form tag :
... <form method="get" action="/index.php/Special:HtdigSearch" accept-charset="iso-8859-1"> ... </form> ...
- See also
- ht:/Dig utf8 workaround (internal handler) (based on iconv and some unix stuff)

