Extension:Page Forms/Download and installation

Download
You can download the Page Forms code, in .zip format: https://github.com/wikimedia/mediawiki-extensions-PageForms/archive/5.4.zip

You can also download the code directly via Git from the MediaWiki source code repository (see 1>phab:diffusion/EPFM/|available tags). From a command line in the extensions directory, run the following:

To view the code online, including version history for each file, see PageForms.

Not recommended
There are some additional ways to download Page Forms, which are not recommended:


 * Page Forms can be downloaded via the MediaWiki 1>Special:ExtensionDistributor|Extension Distributor, which lets you download any extension for any version of MediaWiki. This not recommended because the code being downloaded represents a random snapshot in time, that could contain bugs that were fixed later - or, if the "development/trunk" version is used, it could conversely contain code that is too new, and hasn't been fully tested yet.


 * Page Forms is available via some Linux distributions, like Debian. These should probably not be used, since their version of the software tends to be significantly out of date.

Installation
Once you have downloaded the code as a directory called   in your   folder, you just need to add the following line to your LocalSettings.php file:

There are four  defined for Page Forms:


 * ' ' is the permission to create new classes (see ). By default it is given to all members of the 'user' group.


 * <tvar|edrest>' '</> is the "permission" to edit restricted fields. By default it is given to all members of the 'sysop' group.


 * <tvar|edmult>' '</> is the "permission" to use the MultiPageEdit special page, which allows to edit multiple pages through a single spreadsheet-like interface. By default it is given to all members of the 'user' group.


 * <tvar|view>' '</> is the "permission" to see 1>Special:MyLanguage/Extension:Page_Forms/The "edit with form" tab</>|the "edit with form" tab. By default it is given to everyone (i.e, <tvar|all>'*'</>).

You can modify the set of users who have any of these permissions. For example, to have the "edit with form" tab show up only for administrators, you could add the following, below the inclusion of <tvar|pf>Page Forms</>:

Composer
<tvar|pf>Page Forms</> can also be downloaded and installed using <tvar|composer>Composer</>.

To install with Composer, add the following to your <tvar|json> </> file:

{  "require": { "mediawiki/page-forms": "^5.4" } }

More information about the package can be found on Packagist: <tvar|url></>

Upgrading
If you used 'git clone' to install Page Forms, you can update to the very latest code for it with a simple command. It may not be a stable release. From a command line in the extensions directory, run the following: