Difference between revisions of "Reference:ContentTransfer"

Extension: ContentTransfer


Overview
Description: Copies new or existing wiki pages into a different wiki. (v3.2 and up)
State: stable Dependency: BlueSpice
Developer: HalloWelt License: GPL v3
Type: Category: Quality Assurance
Edition: BlueSpice Farm, BlueSpice Farm (deactivated)

Features[edit source]

ContentTransfer copies new or existing wiki pages in a different wiki on the same farm.

Usage / Features[edit | edit source]

Users can copy up to 200 pages per transfer form one wiki to the same namespace in a selected target wiki.

Technical information[edit | edit source]

Configuration[edit | edit source]

To setup the "Push and Merge" mechanism for wiki instances within the farm you need the following information:

<source-instance-name>
The name of the Wiki instance that acts as the source of the "push". This must be the directory name from /opt/mediawiki/w/_sf_instances/
<target-instance-name>
The name of the Wiki instance that acts as the target of the "push". This must be the directory name from /opt/mediawiki/w/_sf_instances/
<servername>
<username-provided-by>
A user name in form of <username>@<id>. Must first be generated using Special:BotPasswords on the target instance
<password-provided-by>
An automatically generated password of that particular user

When provided with the required information, please open the file /opt/mediawiki/w/_sf_instances/<source-instance-name>/LocalSettings.custom.php and add

                $wgContentTransferTargets['<target-instance-name>'] = [
    "url" => "https://<servername>/<target-instance-name>/api.php",
    "user" => "<username-provided-by>",
    "password" => "<password-provided-by",
    "draftNamespace" => "Draft",
    "pushToDraft" => true,
    "displayText" => "<target-instance-name>",
];

            

Additional settings:

                $wgContentTransferIgnoreInsecureSSL = false; // Ignore invalid SSL certificates (for test systems)
$wgContentTransferPageLimit = 200; // Max number of pages to be allowed at one 
$wgContentTransferOnlyContentNamespaces = true; // Only allow content namespaces to be selected in filters
$wgContentTransferAllowTalkNamespaces = false; // Allow talk namespaces to be selected in filters

            

Rights (permissions)[edit | edit source]

Requirements[edit | edit source]

ContentTransfer requires BlueSpiceFoundation. To merge wiki pages that already exist in the target namespace, the extension MergeArticles is necessary.


Attachments

Discussions