No edit summary Tag: 2017 source edit |
No edit summary |
||
| Line 1: | Line 1: | ||
{{BSExtensionInfo | {{BSExtensionInfo | ||
| | |removed=No | ||
|status=stable | |status=stable | ||
|developer=HalloWelt | |developer=HalloWelt | ||
| Line 7: | Line 7: | ||
|compatible=BlueSpice | |compatible=BlueSpice | ||
|category=Administration | |category=Administration | ||
|features=Users can copy up to 200 pages per transfer from a wiki to the same namespace of a target wiki. | |features=Users can copy up to 200 pages per transfer from a wiki to the same namespace of a target wiki. | ||
Pages that already exist in the target wiki can be manually merged by activating the extension | Pages that already exist in the target wiki can be manually merged by activating the extension [:de:Referenz:MergeArticles{{!}}MergeArticles de:Referenz:MergeArticlesMergeArticles]. | ||
Depending on the settings selected on the ContentTransfer special page, the following files are copied: | Depending on the settings selected on the ContentTransfer special page, the following files are copied: | ||
| Line 20: | Line 19: | ||
* attached files | * attached files | ||
==Configuration== | == Configuration == | ||
In on premise installations, the functionality is already activated. | In on premise installations, the functionality is already activated. | ||
| Line 29: | Line 28: | ||
<span class="nv" style="box-sizing: inherit;">$wgContentTransferAllowTalkNamespaces</span> <span class="o" style="box-sizing: inherit;">=</span> <span class="k" style="box-sizing: inherit;">false</span><span class="p" style="box-sizing: inherit;">;</span> <span class="c1" style="box-sizing: inherit;">// Allow talk namespaces to be selected in filters</span> | <span class="nv" style="box-sizing: inherit;">$wgContentTransferAllowTalkNamespaces</span> <span class="o" style="box-sizing: inherit;">=</span> <span class="k" style="box-sizing: inherit;">false</span><span class="p" style="box-sizing: inherit;">;</span> <span class="c1" style="box-sizing: inherit;">// Allow talk namespaces to be selected in filters</span> | ||
===Certificates=== | === Certificates === | ||
If self-signed certificates are being used (and if no outbound connections are allowed) one must set | If self-signed certificates are being used (and if no outbound connections are allowed) one must set | ||
<syntaxhighlight lang="text"> | <syntaxhighlight lang="text"> | ||
| Line 35: | Line 34: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
in <code>data/bluespice/pre-init-settings.php</code>. | in <code>data/bluespice/pre-init-settings.php</code>. | ||
=== Transfer permission in locked target namespaces === | |||
For highly customized permission concepts, it might be necessary to declare a user who has the appropriate transfer permissions so that the transfer takes place via this user instead of the default ''ContentTransferBot'' user who might not have write-permissions for the target namespaces. The defined user can then be added to any custom wiki groups that have the necessary namespace permissions.<syntaxhighlight lang="php"> | |||
php extensions/BlueSpiceWikiFarm/src/Maintenance/CreateAccessToken.php --sfr=Foo --for-user=WikiSysop | |||
</syntaxhighlight> | |||
|desc=Copies new or existing wiki pages into a different wiki. (v3.2 and up) | |||
|license=GPL v3 | |||
}} | }} | ||
Latest revision as of 12:20, 29 October 2025
| Overview | |||
|---|---|---|---|
| Description: |
Enables pushing content from one wiki to another | ||
| State: | stable | Dependency: | BlueSpice |
| Developer: | HalloWelt | License: | GPL-3.0-only |
| Type: | BlueSpice | Category: | Administration |
| Edition: | BlueSpice farm | Version: | |
Features
Users can copy up to 200 pages per transfer from a wiki to the same namespace of a target wiki.
Pages that already exist in the target wiki can be manually merged by activating the extension [:de:Referenz:MergeArticles|MergeArticles de:Referenz:MergeArticlesMergeArticles].
Depending on the settings selected on the ContentTransfer special page, the following files are copied:
- the selected wiki pages
- the related category pages
- the book page associated with wiki pages
- the templates associated with wiki pages
- attached files
Configuration
In on premise installations, the functionality is already activated.
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
Certificates
If self-signed certificates are being used (and if no outbound connections are allowed) one must set
$GLOBALS['wgWikiFarmConfig_internalServer'] = 'http://wiki-web:9090';
in data/bluespice/pre-init-settings.php.
Transfer permission in locked target namespaces
For highly customized permission concepts, it might be necessary to declare a user who has the appropriate transfer permissions so that the transfer takes place via this user instead of the default ContentTransferBot user who might not have write-permissions for the target namespaces. The defined user can then be added to any custom wiki groups that have the necessary namespace permissions.php extensions/BlueSpiceWikiFarm/src/Maintenance/CreateAccessToken.php --sfr=Foo --for-user=WikiSysop
Technical Information
Technical details for BlueSpice cloud can differ in some cases.
Requirements
- MediaWiki: 1.43.0
Integrates into
- ContentTransfer
Special pages
- ContentTransfer
Permissions
| Name | Description | Role |
|---|---|---|
| content-transfer | Transfer content to other wikis | admin |
Configuration
| Name | Value |
|---|---|
| ContentTransferAllowTalkNamespaces | false |
| ContentTransferEnableBetaFeatures | false |
| ContentTransferIgnoreInsecureSSL | false |
| ContentTransferOnlyContentNamespaces | false |
| ContentTransferPageLimit | 200 |
| ContentTransferTargets | array ( ) |
API Modules
- content-transfer-do-push-single
- content-transfer-get-pages
- content-transfer-purge-pages
- content-transfer-push-info
Hooks