Extension:GbangaLabsLocalFileSearch
From MediaWiki.org
|
Release status: stable |
|||
|---|---|---|---|
| Implementation | User interface, Search | ||
| Description | includes a local file search when searching the wiki | ||
| Last Version | 1.0.0 (11-30-2009) | ||
| MediaWiki | 1.15 | ||
| License | No license specified | ||
| Download | http://gbanga.com/labs/index.php/GbangaLabsLocalFileSearch.php?action=raw | ||
|
|||
|
|||
|
check usage (experimental) |
|||
Contents |
[edit] What can this extension do?
[edit] Usage
Searches for files (only file name search) on server that runs the MediaWiki.
This is especially useful when you host your file server (eg. through Samba) on the same server as your intranet wiki.
[edit] Download instructions
Please download the code found at Gbanga labs and place it in $IP/extensions/GbangaLabsLocalFileSearch/GbangaLabsLocalFileSearch.php. Note: $IP stands for the root directory of your MediaWiki installation, the same directory that holds LocalSettings.php.
[edit] Installation
To install this extension, add the following to LocalSettings.php:
#add configuration parameters $wgGLLFSDirPrefix = '/home'; $wgGLLFSMaxNumber = 5; $wgGLLFSIntranetSearchScript = '/home/search.php'; $wgGLLFSUrlPrefix = '/intranet/share'; $wgGLLFSWinDrive = 'S'; # activate extension require_once("$IP/extensions/GbangaLabsLocalFileSearch/GbangaLabsLocalFileSearch.php");
[edit] Configuration parameters
| key | example value | explanation |
|---|---|---|
$wgGLLFSDirPrefix |
/absolute/to/your/dir | This value defines in which directories the extension is going to search for files |
$wgGLLFSMaxNumber |
numeric | The max number of search results to show on the wiki search page |
$wgGLLFSIntranetSearchScript |
/absolute/to/your/script | This is the URL of the search script that lets you search in your intranet |
$wgGLLFSUrlPrefix |
http://your.host/root/url/ | This is the URL where the intranet directory is made available on HTTP (eg. through Apache) |
$wgGLLFSWinDrive |
S | This is the network drive letter in Windows, eg. S: (do not use a colon!) |
[edit] User rights
See Gbanga labs page.
[edit] Code
Download from the Gbanga labs page.
[edit] See also
Extension:GbangaLabsPivotalTrackerTag also by Gbanga labs.