Setup:Installation Guide/Advanced/Maintenance scripts/batchStabilize: Difference between revisions

(Created page with " ==Mass approval using a script== The script <code>ContentStabilization/maintenance/batchStabilize.php</code> can be used to approve all drafts in the wiki starting with BlueSpice 4.3+. This affects both first drafts, drafts of pages with already approved versions and drafts for embedded resources. ===Options=== {| class="wikitable" style="width:100%;" |+ !Option !Description |- |<code>--pages</code> |Flat file containing page names seperated by line break |- |<code>--n...")
 
No edit summary
Line 33: Line 33:
</syntaxhighlight>
</syntaxhighlight>
====List of page names====
====List of page names====
Such a list can be created using an [[SMW queries|SMW query]], for example.




File <code>/tmp/page-titles-to-stabilize.txt</code>:
   
  Some/Page
Other_page
Help:Some_help_page


Command line:
Command line:
<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
php extensions/ContentStabilization/maintenance/batchStabilize.php --user WikiSysop --pages /tmp/page-titles-to-review.txt
php extensions/ContentStabilization/maintenance/batchStabilize.php --user WikiSysop --pages Page1|Page2|Page3
</syntaxhighlight>
</syntaxhighlight>
[[en:{{FULLPAGENAME}}]]
[[en:{{FULLPAGENAME}}]]
[[de:Handbuch:Erweiterung/FlaggedRevs/Server-Skript]]
[[de:Handbuch:Erweiterung/FlaggedRevs/Server-Skript]]

Revision as of 10:53, 19 July 2023

Mass approval using a script

The script ContentStabilization/maintenance/batchStabilize.php can be used to approve all drafts in the wiki starting with BlueSpice 4.3+. This affects both first drafts, drafts of pages with already approved versions and drafts for embedded resources.

Options

Option Description
--pages Flat file containing page names seperated by line break
--namespace Id of namespace to flag entirely
--user Required. The user name of the existing user to use as the "reviewer"
--comment Adds a stabilization comment to the revision history of the page
--verbose Runs the script in verbose mode to show exceptions
Note:The options --pages and --namespace are mutual exclusive required. One - and only one - of them must be provided.


Examples

Whole namespace

php extensions/ContentStabilization/maintenance/batchStabilize.php --username WikiSysop --namespace 3000

List of page names

Command line:

php extensions/ContentStabilization/maintenance/batchStabilize.php --user WikiSysop --pages Page1|Page2|Page3



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

No categories assignedEdit

Discussions