Table des matières
Quiz Behaviour Block: Installation Guide
Installation
This block requires, in addition to the standard installation, the setting up of:
- customscripts to divert the main entry points of the quizzes.
- a renderer override in the theme(s) used on the platform.
Standard installation
- Unzip the archive into the
/blocksdirectory of your Moodle installation. - Browse the administration notifications to complete the installation
Setting up the customscripts
You must have previously enabled customscripts by defining a repository directory for your customscripts in your installation, in Moodle's central config.php file:
$CFG->customscripts = '<chemindescustomscripts>';
Then copy the content of the __customscripts folder of the distribution to that location, respecting the inner directory structure.
Setting up the theme override
In recent versions of Moodle (> 3.1), most themes contain a classes directory where renderer overrides are stored. If it does not exist, you will have to locate where the theme designer planned to store these classes.
Copy the renderer mod_quiz_renderer.php located in the __theme/classes directory of the distribution to that location.
Warning, if you already have a quiz renderer override from earlier integrations (except those of the userquiz_monitor block that this component replaces) then you will have to merge the renderers to provide all the functional overrides.
