Server script

Revision as of 08:45, 22 April 2022 by Rvogel (talk | contribs)

Mass approval using a script

The script extensions/BlueSpiceFlaggedRevsConnector/maintenance/BSBatchReview.php can be used to approve all drafts in the wiki. This affects both first drafts, drafts of pages with already approved versions and drafts for embedded resources.

Options

Option Description
--username Required. The user name of the existing user to use as the "reviewer"
--pageids Flat file containing page ids seperated by line break
--pages Flat file containing page names seperated by line break
--namespace Id of namespace to flag entirely
--flag Which flags to apply? Possible values: "quality", "pristine", "checked". Default is "quality".
Note:The options --pageids, --pages and --namespace are mutual exclusive required. One - and only one - of them must be provided.


The pages are released per namespace and by a user with admin rights:

php extensions/BlueSpiceflaggedRevsConnector/maintenance/BSBatchReview.php --username WikiSysop --namespace 3000

If there is a large number of affected namespaces, a list of page titles or page IDs can be specified as a txt file. If necessary, this list can be created using a SMW query.




To submit feedback about this documentation, visit our community forum.