questiontype:randomconstrained:installguide

Installation guide

Question type: Constrained random questions

==== Plugin installation

This plugin is installed as follows:

  • Unzip the archive into the /question/type directory of your Moodle installation
  • Navigate to the site administration notifications to complete the installation

Adding script overrides (customscripts)

To be able to add constrained random questions to a quiz, the quiz editing file must be bypassed by a modified version:

Preparation (if you do not yet use “customscripts” in your Moodle):

  • Create a “customscripts” directory at the root of Moodle (or in any other system location where your server can read scripts)
  • Modify your main config.php file by adding the line:
 $CFG->customscripts = '/path/to/customscripts';

Setting up the bypass:

  • Copy the tree contained in the plugin's __customscripts directory into your customscripts directory.

Notes:

  1. Effect of customscripts: any customised file occupying a relative path similar to a standard Moodle file will be called in place of the original.
  2. Scripting only concerns Moodle's web “entry points” and not “includes” (libraries, classes, etc.)
  3. Be careful if you use plugins that have already customised the same scripts. You will have to merge the modifications. This plugin's modifications are delimited by comments
 //CHANGE
 ...Modification...
 // /CHANGE

Back to the component summary - Components summary - Back to catalogue

questiontype/randomconstrained/installguide.txt · Dernière modification : de 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki