Topic on Project:Support desk

approval revision on custom namespace pages

2
YogendraAAES (talkcontribs)

Hi,

I have downloaded free version of mediawiki 1.28.2 and done with all configuration setting during installation. I am trying to provide approval revision extension for custom namespace.

Can you guide me approval revision on pages which is created under custom namespace ?

Thanks & Regards,

Yogendra Trivedi

AhmadF.Cheema (talkcontribs)

For this, you will have to use Extension:FlaggedRevs. For custom namespaces you will have to further set the setting: $wgFlaggedRevsNamespaces.

For example, in your LocalSettings.php:

// Enable the extension
require_once("$IP/extensions/FlaggedRevs/FlaggedRevs.php");
// Set FlaggedRevs for Project namespace
$wgFlaggedRevsNamespaces = array ( 4 );

Use Manual:Namespace#Built-in namespaces for namespace numbers.

Although in T30662 and T970 (Miraheze) for $wgFlaggedRevsNamespaces namespace names are being used instead of their numbers, but the documentation only mentions namespace numbers. It probably should work using either method.