Extension:PushAll

From mediawiki.org
MediaWiki extensions manual
OOjs UI icon advanced-invert.svg
PushAll
Release status: stable
Implementation Page action , Special page , Ajax, API , User interface
Description Allows to push all content from pages, subpages and namespaces to other wikis
Author(s) Karima Rafes (Karima Rafestalk)
Latest version 2.0.1 (2021-10-04)
MediaWiki 1.35, 1.36, 1.37
PHP 7.3+
License GNU General Public License 3.0 or later
Download

  • $egPushAllTargets
  • $egPushAllLoginUsers
  • $egPushAllLoginPasswords
  • $egPushAllTargetsNamespace

Check usage and version matrix.

The PushAll extension can push all content (images, modules, templates), subpages and associated namespaces to other wikis. This extension inserts a discrete tab "push" on your pages or you can use the special page 'Push'. A user can see and select exactly the contents to push.

This is a fork of the Push extension but this version has been completely rewritten.

Use case[edit]

This extension is very useful when the wiki is private.

When you have finished working in private (ie, in a private wiki), you may want to push your pages (with their modules, templates, files and data pages) in another (public) wiki. This installation inserts a discrete tab "push" on your pages or you can use the special page 'Push'.

Installation[edit]

Configuration[edit]

In the preferences of users[edit]

Targeted wikis[edit]

Any users can add a remote wiki directly in their preferences, tab "Targeted wikis".

By default there are no targets, which will cause the push tab to not be shown anywhere until you add at least one target.

You have to declare a targeted wiki with a bot (a botname and a key) created in this remote wiki.

Tab display[edit]

When using vector like skins, you can choose to have the push tab displayed on the page itself, or in the action menu you can open by clicking the down arrow next to the visible tabs. For this, an user need to set the option in the preferences to either true or false. The default is false.

Pages attached by their namespaces[edit]

Configuration of push is done by adding simple PHP statements to your LocalSettings.php file. These statements need to be placed AFTER the inclusion of PushAll. The options are listed below and their default is set in the [https://github.com/BorderCloud/PushAll/blob/master/extension.json push settings file]. You should NOT modify the settings file, but can have a look at it to get an idea of how to use the settings, in case the below descriptions do not suffice.

You can push in same time other pages attached by their namespaces and the same title. Example:

$egPushAllAttachedNamespaces[] = "Data";
$egPushAllAttachedNamespaces[] = "Discussion";

Details: Install of PushAll extension

See also[edit]