Links
Link important words to other wiki articles or even other websites. It will help readers understand the context.
Okay, got itYou do not have permission to edit this page, for the following reason:
You do not have permission to edit this page, for the following reason:
You can view and copy the source of this page.
Templates used on this page:
Return to Setup:Installation Guide/Advanced/Maintenance scripts/batchStabilize.
==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.
This script allows the approval of all pages in a namespace or, alternatively, a list of pages defined in a text file.
===Options===
{| class="wikitable" style="width:100%;"
|+
!Option
!Description
|-
|<code>--namespace</code>
|Id of namespace to flag entirely
|-
|<code>--user</code>
|Required. The user name of an existing user that is shown as page approver
|-
|<code>--comment</code>
|Adds a stabilization comment to the revision history of the page
|-
|<code>--verbose</code>
|Runs the script in verbose mode to show exceptions
|}
===Examples===
====Whole namespace====
<syntaxhighlight lang="bash">
php extensions/ContentStabilization/maintenance/batchStabilize.php --user WikiSysop --namespace 3000
</syntaxhighlight>
====List of page names ====
Starting with BlueSpice 4.3.2, a file with a newline-separate list of pages (as an arg or as stdin) can be used to define the pages that need to be approved:<syntaxhighlight lang="bash">
php extensions/ContentStabilization/maintenance/batchStabilize.php --verbose /tmp/page-titles-to-review.txt
</syntaxhighlight>
<syntaxhighlight lang="bash">
php extensions/ContentStabilization/maintenance/batchStabilize.php --verbose < /tmp/page-titles-to-review.txt
</syntaxhighlight>{{Textbox|boxtype=note|header=|text=In case the page titles contain special characters (like ä, ö, ü and so on), make sure to save the file in UTF-8 encoding. Otherwise the script may not be able to find the according page names inside the database!|icon=yes}}
[[en:{{FULLPAGENAME}}]]
[[de:Handbuch:Erweiterung/FlaggedRevs/Server-Skript]]