ContentTransfer

Revision as of 16:15, 1 March 2021 by Mlink-rodrigue (talk | contribs) (Created page with "{{BSExtensionInfobox |desc=Copies new or existing wiki pages into a different wiki. (v3.2 and up) |status=stable |developer=HalloWelt |type=BlueSpice |edition=BlueSpice F...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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: Qualitätssicherung"Qualitätssicherung" is not in the list (Administration, Editor, Export, Mobile, Reporting, Skinning, Book, Communication, Infrastructure, Personalization, ...) of allowed values for the "BSExtensionInfoCategory" property.
Edition: BlueSpice Farm

Features

The extension MergeArticles makes it possible to merge two corresponding wiki pages in different wiki instances.

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

Usage / Features

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

Technical information

Configuration

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)

Requirements

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

Attachments

Discussions