[Mediawiki-l] Approval / Validation

Lane, Ryan Ryan.Lane at ocean.navo.navy.mil
Thu Jan 11 19:56:27 UTC 2007


> This StableVersion seems like something that could be useful 
> in my company. Does it have any documentation about what it 
> does, and how to use it?

Not really. Magnus Manske wrote the extension, and I updated it some.
I'm using it, but I'm not sure if anyone else is. No documentation has
been written for it except for the slight amount of documentation
written in the extension itself.

Once I heard MediaWiki will be adding support for something similar in
the future, I stopped making updates to this extension because I wanted
to see if the new MediaWiki code is something I can use in my
organization. No point in maintaining an extension that will be made
redundant in the future.

As for a quick usage guide... The extension is pretty easy to use. You
add a table to your database (the sql to do so is in the extension
comments). Then, you add stuff to LocalSettings.php like so:

// For stable version stuff
// Don't forget to checkout the language directory and everything in it!
include( "extensions/StableVersion.php" );

// Only give permission to change stable version info to people in the
// docCustodian group.
$wgGroupPermissions['*']['stableversion'] = false;
$wgGroupPermissions['docCustodian']['stableversion'] = true;

// Set this to true if you want non-logged in users to be redirected 
// automatically to the stable version. If no stable version exists,
// users will see the latest draft.
#$wgStableVersionRedirectAnon = true

// Used in combination with the option above. If you
// want anonymous users to only see the stable version,
// set this to true. Like above, if no stable version exists
// users will see the latest draft.
#$wgStableVersionShowDefaultToAnon = true

After doing so, add users to the docCustodian group and they'll be able
to set/unset things as stable.

V/r,

Ryan Lane



More information about the MediaWiki-l mailing list