Drag-and-Drop Matching
Maintained by
DualCube Team
Drag-and-drop matching is a simple solution that is meant to help learners with matching quizzes. The students must simply "drop" their responses into a pre-defined space from the list of options that are available. The drag-and-drop interface makes learning fun and interesting.
Comments
Product ratings and reviews are coming to Moodle Marketplace. Until then, existing comments remain available to read, but new posts have been disabled.
https://img-fotki.yandex.ru/get/6735/15410753.10/0_c1e21_4ef14a93_orig
Is it normal? What I should do to get drag-and-drop?
I use Moodle 2.7.
Thank!
Just confirming that the code changes to render.php worked like a charm on v 2.7. Thanks so much!
Cannot find this release...
The only way to cancel pending installation of the qtype_ddmatch plugin is to completely delete the question/type/ddmatch folder on your server.
"!! Coding error detected, it must be fixed by a programmer: Question type ddmatch 95753: is missing important code (the file /var/www/html/totaralms/question/type/ddmatch/db/upgradelib.php)"
in out Moodle 1.9 to 2.2 upgrade log.
After that all quizes with qtype_ddmatch questions stopped working in Moodle 2
What is the reason for that? What have we done wrong?
wow, that was fast! Thank you very much for your answer and the quick fix. I'll replace later today.
Best regards
Sebastian
Thanks for reporting the problem.
It's caused by the fact we were testing if Ajax was enabled using $CFG->enableajax but in Moodle 2.7 it is no more defined and ajax is always considered enabled.
I need to release a new version for Moodle 2.7
In the meantime if you need a quick fix and you know how to edit a php file, you can solve the problem editing question/type/ddmatch/renderer.php lines 70_85 just replacing
/**
* Check whether drag and drop is supported
*
* @return boolean Whether or not to generate the drag and drop content
*/
protected function can_use_drag_and_drop() {
global $USER, $CFG;
// Note: The screenreader setting no longer exists from Moodle 2.4.
if (!$CFG->enableajax || !empty($USER->screenreader)) {
return false;
}
return true;
}
by just :
/**
* Check whether drag and drop is supported
*
* @return boolean Whether or not to generate the drag and drop content
*/
protected function can_use_drag_and_drop() {
return true;
}
So that the function always return true and the drag and drop interface is used.
I installed the plugin on moodle 2.7. When I preview a question a normal, pulldown-matching question is displayed.
Best regards
Sebastian
As I said I am totally unable to reproduce your problems: my drag and drop question are working in Moodle 2.6 with no problem and my TeX formulas are displayed both in the subquestions and in the answers. Sorry it must be something with your system, your theme or your version of the ddmatch plugin.