Site Settings: Difference between revisions

From ILTA Media Wiki
Created page with subheadings for Visual Editor and Editing Permissions
 
Added File Uploads section
 
(3 intermediate revisions by the same user not shown)
Line 17: Line 17:
     <code>$wgGroupPermissions['*']['createaccount'] = false;
     <code>$wgGroupPermissions['*']['createaccount'] = false;
     $wgGroupPermissions['sysop']['createaccount'] = true;</code>
     $wgGroupPermissions['sysop']['createaccount'] = true;</code>
=== Viewing Permissions ===
There is currently no restriction on viewing. However, here are the steps if we want to enable that in the future:
Yes, you can password-protect your MediaWiki site so that only registered users can view it. To do this, you need to modify the <code>LocalSettings.php</code> file. Here are the steps:
# '''Disable reading by anonymous users''': Add the following line to your <code>LocalSettings.php</code> file:
    <code>$wgGroupPermissions['*']['read'] = false;</code>
# '''Allow reading for registered users''': Add this line to allow registered users to view the pages:
    <code>$wgGroupPermissions['user']['read'] = true;</code>
# '''Restrict account creation''' (optional): If you want to restrict account creation to sysops only, add:
    <code>$wgGroupPermissions['*']['createaccount'] = false;
    $wgGroupPermissions['sysop']['createaccount'] = true;</code>
=== File Uploads ===
Uploads, including image uploads, are disabled by default. To enable, see [[mediawikiwiki:Manual:Configuring_file_uploads|Manual:Configuring file uploads - MediaWiki]]
== Documentation ==
See https://www.mediawiki.org/wiki/Manual:Configuration_settings.

Latest revision as of 18:41, 8 April 2025

Visual Editor

The VisualEditor extension has been enabled to allow WYSIWYG editing.

Editing Permissions

To limit edit rights to users with an account in MediaWiki, we have modified the LocalSettings.php file in the MediaWiki installation.

  1. Disable anonymous editing: Add the following lines to your LocalSettings.php file:
   $wgGroupPermissions['*']['edit'] = false;
  1. Enable editing for registered users: Add this line to allow registered users to edit:
   $wgGroupPermissions['user']['edit'] = true;
  1. Restrict account creation (optional): If you want to restrict account creation to sysops only, add:
   $wgGroupPermissions['*']['createaccount'] = false;
   $wgGroupPermissions['sysop']['createaccount'] = true;

Viewing Permissions

There is currently no restriction on viewing. However, here are the steps if we want to enable that in the future:

Yes, you can password-protect your MediaWiki site so that only registered users can view it. To do this, you need to modify the LocalSettings.php file. Here are the steps:

  1. Disable reading by anonymous users: Add the following line to your LocalSettings.php file:
   $wgGroupPermissions['*']['read'] = false;
  1. Allow reading for registered users: Add this line to allow registered users to view the pages:
   $wgGroupPermissions['user']['read'] = true;
  1. Restrict account creation (optional): If you want to restrict account creation to sysops only, add:
   $wgGroupPermissions['*']['createaccount'] = false;
   $wgGroupPermissions['sysop']['createaccount'] = true;

File Uploads

Uploads, including image uploads, are disabled by default. To enable, see Manual:Configuring file uploads - MediaWiki

Documentation

See https://www.mediawiki.org/wiki/Manual:Configuration_settings.