Manual:$wgContentHandlers

From MediaWiki.org
Jump to: navigation, search

Other languages:
Deutsch • ‎English • ‎español • ‎français • ‎italiano • ‎日本語 • ‎polski • ‎português • ‎português do Brasil
Output: $wgContentHandlers
Mapping of content type handlers
Introduced in version: 1.21.0
Removed in version: still in use
Allowed values: Array of content model ID constants
Default value: (see below)
Other settings: Alphabetical | By function

Details[edit]

Plugins for page content model handling. Each entry in the array maps a model ID constant to a PHP class name.

Default value[edit]

The default value, as of 1.24.0, is:

$wgContentHandlers = array(
	// the usual case
	CONTENT_MODEL_WIKITEXT => 'WikitextContentHandler',
	// dumb version, no syntax highlighting
	CONTENT_MODEL_JAVASCRIPT => 'JavaScriptContentHandler',
	// simple implementation, for use by extensions, etc.
	CONTENT_MODEL_JSON => 'JsonContentHandler',
	// dumb version, no syntax highlighting
	CONTENT_MODEL_CSS => 'CssContentHandler',
	// plain text, for use by extensions, etc.
	CONTENT_MODEL_TEXT => 'TextContentHandler',
);