Your Moodle version

Question types: Drag-and-Drop Matching

qtype_ddmatch
Maintained by Picture of Jean-Michel Védrine Jean-Michel Védrine
Question type similar to the matching question type but with a drag and drop interface for the students during attempt.
31k
8

Created by Adriane Boyd during 2007 Google Summer Of Code, the drag and drop matching question type is quite similar to the matching question type found in standard Moodle, differences are:

  • during question creation/edition of drag and drop matching questions, an editor is available for each answer (in standard matching question this is not possible because these elements are displayed inside a select menu during question attempts)
  • during question attempts a drag and drop interface is displayed and the student must drag each right element on the correct spot on the left.

Contributors

Picture of Jean-Michel Védrine
Jean-Michel Védrine (Lead maintainer)
Picture of Adriane Boyd
Adriane Boyd: Original author
Picture of Andrew Nicols
Andrew Nicols: Javascript upgrade to YUI3
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Picture of Abdelghani Azzi
    Sat, Nov 1, 2014, 3:54 PM
    Excellent code fix. Works great on Moodle 2.7! Thank you JMV!
  • image by Vasya Romashova
    Sat, Nov 8, 2014, 11:42 AM
    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!
  • Picture of Abdelghani Azzi
    Sat, Nov 8, 2014, 6:30 PM
    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.
  • Picture of Jean-Michel Védrine
    Mon, Nov 10, 2014, 1:26 AM
    Hello, I just published a new version adding compatibility with Moodle 2.7 and 2.8
  • Picture of David Dunn
    Tue, Nov 18, 2014, 7:49 PM
    Hi Jean-Michel,
    I am getting an error with a drang-and-drop matching question. It worked until ... recently. I upgraded the plugin to the current 2014110900 release, but in the plugin overview, it indicates that qtype_match (2013050100) is missing.
    This was previously reported and addressed by Steven Long and yourself (20 Aug 2014).
    Has something broken in the connection between the drag-and-drop match plugin and the core qtype_match ?
  • Picture of David Dunn
    Tue, Nov 18, 2014, 10:47 PM
    Following up my previous message, I disabled the ddmatch folder so I could get past the plugin overview (update) screen.
    When I re-enabled ddmatch, and tried to access the quiz question with ddmatch, I got the following debug messages:
    Debug info:
    Error code: codingerror
    Stack trace:
    line 95 of /question/engine/bank.php: coding_exception thrown
    line 831 of /lib/questionlib.php: call to question_bank::get_qtype()
    line 862 of /lib/questionlib.php: call to _tidy_question()
    line 153 of /mod/quiz/attemptlib.php: call to get_question_options()
    line 163 of /mod/quiz/locallib.php: call to quiz->load_questions()
    line 178 of /mod/quiz/startattempt.php: call to quiz_start_new_attempt()

    I don't know if it is related, but I reported another question type error this week: https://moodle.org/mod/forum/discuss.php?d=275019

    -- Could there be a link?
  • Picture of Jean-Michel Védrine
    Wed, Nov 19, 2014, 12:06 AM
    Hello david,
    The error in your second message is just the sign that the plugin was not properly installed, which is quite understandable as you said "Following up my previous message, I disabled the ddmatch folder so I could get past the plugin overview (update) screen. "
    So I think we should focus on your first problem: why can't the install of qtype_ddmatch work ? I am mystified that you are the second user reporting that qtype_match can't be found. It's very unfortunate that back in August we have not found why Steven had this problem.
    So lets try to solve it properly now so that your install of qtype_ddmatch can succeed and I am sure that the other problem will vanish once it is properly installed.
    I am assuming you use Moodle 2.7.x and language is set to English in my explanations
    Go to Site Administration -> Plugins -> Plugins overview
    Scroll to question types section and verify you see a line like
    Matching qtype_match Standard 2014051200 enabled
    If you don't see it or if it is disabled then you have found a problem
    I your version is different copy the version number so that I can see if something is wrong.
    In the rightmost column you should see what other plugins require this plugin, you should see qtype_randomsamatch and maybe qtype_ddmatch
    Once this is verified, we will try other tests to find what is wrong.
  • Picture of David Dunn
    Wed, Nov 19, 2014, 5:46 AM
    Hi Jean-Michel,

    The qtype_match Standard is indicated as Missing from disk. I reinstalled it from the latest mdl 2.7 package, and everything is working again.

    Thanks for walking through this with me. I'm happy that the questions are accessible again, although a little concerned about how the qtype_match directory disappeared.
  • Picture of Sarah Quinnell
    Wed, Nov 19, 2014, 10:41 PM
    Hi I have just tried to add this question type plugin and the error i get is qtype_gapfill is missing
  • Picture of David Dunn
    Wed, Nov 19, 2014, 11:13 PM
    Hi Sarah,
    It sounds similar to my problem. See Jean-Michel's advice above (18 Nov 2014, 5:06 PM), but looking for a Missing from disk error by qtype_gapfill.
  • Picture of Jean-Michel Védrine
    Wed, Nov 19, 2014, 11:46 PM
    Hello Sarah,
    I don't think David is right because "Drag and drop question type" (qtype_ddmatch) is only dependant on "Matching question type" (qtype_match) and is not dependant at all on qtype_gapfill.
    So surely this error message is caused by something else than the "Drag and drop matching question".
    Maybe you have installed another question type than is dependant on qtype_gapfill ?
    Go to Site Administration -> Plugins -> Plugins overview
    Scroll to question types section and look at what question types are dependant on qtype_gapfill and what question types are missing.
  • Picture of shiva k
    Wed, Dec 17, 2014, 3:43 PM
    By the way how to disable this qtype? All my imports for matching type are mistakenly imported as ddmatch which i dont want. Could you please tell me? hiding the plugin is not helping...
  • Picture of dan eagles
    Tue, Jan 20, 2015, 2:59 PM
    Hello Jean-Michel!
    Does this question type supports input from devices with touch-screen (i.e. smartphones)?
    Does it supports export & import of questions with images in body and answers in Moodle XML format?
    Sorry for asking here, I couldn't find this information in documentation or discussion thread.
  • Picture of Jean-Michel Védrine
    Sat, Feb 7, 2015, 12:42 AM
    Hello dan,
    Yes images are supported na dcontrary to core matching questions they are supported both in stems (left) and in choices (right). All images are exported and imported correctly using Moodle XML format. For touchscreen devices, I don't know, it would be good somebody test and report.
  • Picture of Scott Andre
    Sun, May 3, 2015, 4:49 AM
    Hello Jean-Michel,
    My company is interested in finding someone who would be willing to develop a version of drag and drop as well as matching that offers all-or-nothing grading. We wish to avoid partial grading and from what I gather this is currently not an option with any of the drag and drop or matching question types. We are certainly willing to compensate the developer for their time and in turn would hope the developer would share this with the Moodle community. Do you know how or who I should reach out to for this? Certainly if you are available I would love to discuss further.
1 2 3
Please login to post comments