Table des matières

Installation guide

Question type: Constrained random questions

==== Plugin installation

This plugin is installed as follows:

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):

 $CFG->customscripts = '/path/to/customscripts';

Setting up the bypass:

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