Drag-and-Drop Matching icon

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.
Price option: Free

Supports Moodle 1.9-5.0 See all versions
Latest release: 1 year ago
Installations: 3347
Downloads (last 90 days): 816

Frankenstyle name: qtype_ddmatch
Question types

Comments

Product ratings and reviews are coming to Moodle Marketplace. Until then, existing comments remain available to read, but new posts have been disabled.

Hi Ilya w-495 Nikitin the solution to your problem is given by Jean-Michel Védrine @Tue, Jun 10, 2014, 11:30 AM, earlier in the thread.
Preview looks like this
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!
Excellent code fix. Works great on Moodle 2.7! Thank you JMV!
Jean-Michel,
Just confirming that the code changes to render.php worked like a charm on v 2.7. Thanks so much!
Is it possible to use this plugin with a keyboard (no mouse)?
"I need to release a new version for Moodle 2.7"
Cannot find this release...
Hello Steven, this is strange, qtype_match is a standard question type and is included in all Moodle versions. So unless you have removed it, it should be here.
The only way to cancel pending installation of the qtype_ddmatch plugin is to completely delete the question/type/ddmatch folder on your server.
I have only two administrator accounts on my Moodle 2.7 installation: admin and sysop. When I log in as either of them, I am taken straight to the “Plugins check” window. The URL is http://127.0.0.1/m/admin/index.php. I am stuck on this window, because I have the drag-and-drop matching plugin with status “to be installed”. I am unable to install it because it requires qtype_match. Unfortunately, qtype¬_match doesn’t show up when I search for that name. How do I either obtain qtype_match or cancel the pending installation of the drag-and-drop plugin? Thank you very much! Steve
We ended up with lots of error messages like that:
"!! 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?
Hello Jean-Michel,
wow, that was fast! Thank you very much for your answer and the quick fix. I'll replace later today.
Best regards
Sebastian
Hello 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.
Hello,
I installed the plugin on moodle 2.7. When I preview a question a normal, pulldown-matching question is displayed.
Best regards
Sebastian
I made another test to display TeX formulas inside ddmatch questions using the "TeX notation" filter of Moodle and it works too. No problem here.
I forgot to say that I use MathJax to display TeX formulas.
Hello,
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.