Instructions for use

From Redazione
Jump to navigation Jump to search
Line 2: Line 2:
 
==For users==
 
==For users==
  
Regular users (authorized people from centers of Italian culture and language) can have a page in the form  
+
{{unordered list
 +
|Regular users (authorized people from centers of Italian culture and language) can have a page in the form  
 
<code>
 
<code>
 
https://culturaitaliana.org/wiki/[language]/[name of center]
 
https://culturaitaliana.org/wiki/[language]/[name of center]
Line 22: Line 23:
 
</code>
 
</code>
 
this helps keeping the file system ordered and to clearly attribute files ownership.
 
this helps keeping the file system ordered and to clearly attribute files ownership.
 +
 +
| aaa
 +
 +
}}
  
 
== For administrators ==
 
== For administrators ==

Revision as of 19:56, 17 February 2020

For users

  • Regular users (authorized people from centers of Italian culture and language) can have a page in the form

    https://culturaitaliana.org/wiki/[language]/[name of center] and whatever subpage within it. A subpage is a page below the main page after the slash, for instance https://culturaitaliana.org/wiki/[language]/[name of center]/articles and they can be arbitrarily nested.

    Other pages or subpages of this wiki are protected from editing when they do not belong to the organization to which the logged in user is affiliated. An exception, are the contents created using the forms "Add announcement", "Add book suggestion", or any other content created by forms. (i.e., not through the standard buttons "edit" or "edit source" button on the page). If you wish to edit the common pages and to collaborate with this platform further, just join our team using this form!

    This is also true for uploaded files: the system adds to every uploaded file a prefix with the name of the organization, for instance Centro_culturale_italiano_Barcellona_Italian_class_August_2019.jpg

    this helps keeping the file system ordered and to clearly attribute files ownership.
  • aaa

For administrators

  • added parser functions: #userAffiliatedTo and #userRealName, the first returns the organization to which the logged in user is affiliated and the second the user real name. This is used for instance in forms, to allow the user to appear as affiliated to his/her organization when contributing to some common contents, and more.
  • Once that an organization is added, create an entry in LocalSettins.php like
     $wgGroupPermissions['memberof_{organization name}']['edit'] = false;
    where {organization name} should be replaced with the organization name with spaces replaced by underscores, then add the authorized user affiliated to that organization to such group ('memberof_{organization name}') and to a group with edit rights: by this way the system knows he or she is affiliated to that organization and can behave accordingly.
  • uploadApi (file includes/api/ApiUpload.php) on upload, the filename of uploaded file is prefixed with the name of the organization to which the logged in user if affiliated. The same applies, as above, to pictures uploaded through PageForms.
    • todo: update PageForms uploaded picture preview searching class "simpleupload_prv"
  • pages are protected from editing when the logged in user is not an administrator and the edited page or subpage does not belong to the organization to which he or she is not affiliated. We are using the extension "Abuse filter" with a custom filter at the moment based on a group in which users affiliated to organizations are inserted after subscription