Extension:BypassSearch

From MediaWiki.org
Jump to: navigation, search
MediaWiki extensions manual - list
Crystal Clear action run.png
BypassSearch

Release status: stable

Implementation User interface, MyWiki
Description Adds a user preference to go directly to creating a new page when the Go button is used and the target page doesn't exist
Author(s) slakr
Last version 1.0.1 (13 April 2008)
MediaWiki 1.8.0
License No license specified
Download download latest stable version
Hooks used
UserToggles

SpecialSearchNogomatch

Check usage and version matrix; stats

Contents

What can this extension do?[edit]

When using the search box, the default behavior is to Go directly to an article if it exists, or if it doesn't, use the search engine to find the given term. This extension allows the user to specify (under the "Misc" tab of "my preferences") the he wants to go directly into creating a new page instead of activating the autosearch when the given article doesn't exist.

If, instead, you wish to force this behavior for everyone, you don't need to use this extension; rather, simply enable $wgGoToEdit globally.

Use[edit]

Straightforward. Simply follow the installation instructions and the option magically appears.

Installation[edit]

  • Switch to your MediaWiki installation's root directory (i.e., where LocalSettings.php is located).
  • Make a subdirectory to 'extensions':
mkdir extensions/BypassSearch
# If you would like the option enabled by default, set this to 1.
$wgDefaultUserOptions['bypasssearch'] = 0;
 
require_once("$IP/extensions/BypassSearch/BypassSearch.php");

Configuration parameters[edit]

See above.

User rights[edit]

None.