Drag and drop markers

Question types ::: qtype_ddmarker
Maintained by Tim at Lone Pine Koala SanctuaryTim Hunt, Jamie Pratt, Phil Butcher
The student can drag markers to indicate key features on an image.
Latest release:
112 sites
24 fans
Current versions available: 6

There are working examples in eAssessment with Moodle on our OpenLearn site.

The documentation is in How to create questions in Moodle on that site.


This plugin is part of set Open University.


Screenshot #0


Tim at Lone Pine Koala Sanctuary
Tim Hunt (Lead maintainer)
Jamie Pratt: Developer
Phil Butcher: Question type designer
Colin Chambers: Developer
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Tim at Lone Pine Koala Sanctuary
    Thu, Sep 22, 2016, 4:28 PM
    Note, this question type is now in Moodle core. Can you test the latest version at https://qa.moodle.net/mod/quiz/view.php?id=55.

    I was under the impression that it works fine on iOS, and I am pretty sure I would have users complaining at me if it was not working at the OU.
  • Thu, Sep 22, 2016, 4:41 PM
    Thanks for response Tim, yes the test question on Moodle Core, allows me to drag the items - although you cannot complete the quiz, as there is too much space between the items and the image, and I cannot drag and scroll at the same time on my phone. If I turn phone to portrait, the parts of the image that are off the right hand side, can then not be reached. Looking at the Moodle that I am working on, it tells me the plugin is up to date - I cannot see any difference in the way that you have created your question, and I have created mine - could there be another setting in my moodle that is stopping this from working?
  • Tim at Lone Pine Koala Sanctuary
    Thu, Sep 22, 2016, 6:12 PM
    Looking throug the history of what changed since these were added to Moodle core, there is not much related to mobile devices. The only one I can see on https://github.com/moodle/moodle/commits/MOODLE_31_STABLE/question/type/ddmarker mentions Andriod, not iOS. https://github.com/moodle/moodle/commit/e76deaac51a97eb021cfba49ac742ec5716ffa2e
  • Thu, Sep 22, 2016, 6:27 PM
    Thanks Tim, I exported my quiz and installed it onto a different moodle, where the quiz did work on the iphone - so my issue must be related to my particular installation of moodle anway - and I will have fun trying to work out where and why...
  • Tim at Lone Pine Koala Sanctuary
    Tue, Jun 27, 2017, 12:07 AM
    This question type is now part of the standard Moodle package. Please can you post your question in the quiz forum: https://moodle.org/mod/forum/view.php?id=737
  • Thu, Oct 5, 2017, 3:43 PM
    We had recently a problem reported, that pictures were not imported from one course to another by direct import functionality. But I cannot reproduce.

    By comparing the xml-export file of this question type with the xml-export file of other question types, the "path"-tag is missing (see below):

    question type="matching"
    file name="1a.png" path="/" encoding="base64">iVBORw0KGgoAAAANSUhE...

    question type="ddmarker
    file name="k8af094_gleichung_4_600x249.png" encoding="base64"...

    Is this missing tag intended or could this be the reason for the problem?
  • Thu, Nov 1, 2018, 12:15 PM
    We need some help with Drag and Drop question.

    Is there a way to use drag and drop plugins such that if we have following requirement it gets done with correct marking.

    We have a background image where we want the student to drop images beginning with letter m. In the draggables we are providing a mix of m letter objects and others. Now imagine if there are 3 drop locations on the background image and we have 3 m letter objects. Consider drop placeholders as D1, D2 and D3 and correct images are m1, m2, m3. The user should be able to drop either m1 or m2 or m3 on D1 or D2 or D3 and the answer should be correct. But the correct plugin binds every selected draggable to specific placeholder we see on the background image. How can we achieve this? Can this happen via some customization in the plugin at the code level? Please help. Can we achieve this with drag and drop marker plugin instead of drag and drop onto image if possibly images can be uploaded instead of text markers?

    We are using Moodle version 3.4.1+
  • Thu, Apr 30, 2020, 6:27 PM
    I love this question type! One observation: when I upload the image to drop the marker onto, it is automatically converted to a low resolution. I can understand that some type of conversion is required to allow the specification of the drop zones, but this resolution makes it really hard to read any text on the background image. It would be great if a higher resolution was supported (or better still: if the user could somehow control the resolution of the background image).
  • Tim at Lone Pine Koala Sanctuary
    Thu, Apr 30, 2020, 11:47 PM
    This question type has been part of standard Moodle for ages, so this is not really the place to discuss it.

    Anyway, the good news is that my co-worker Huong has just done exactly the change you want (MDL-68446 and linked issues) and that should be included in Moodle 3.9.
  • Mon, Nov 2, 2020, 1:18 PM
    Hiya-Have staff asking if it is possible to have the drop zones available to students - as in you/they can see the outline/they are slightly transparent or something similar. I get that it may be correct for some to be able to drop the text anywhere, but it would be nice to have the option to have the drop zones visible or not. Is this a possibility?
  • Mon, Nov 2, 2020, 3:50 PM
    @Davin - If I want to create a question type where the dropzones are visible to the learners, I simply edit the image in PowerPoint, to show the dropzones and then upload this. I actually have a PowerPoint template set up for this purpose - with the size of the slide set to exactly match the size required for the image - so even if I am not showing the dropzones, I tend to upload the image I want to use into this template file, I can then crop/resize this in there, before exporting as an image. It would be a good addition to have the option to show the dropzones, but I don't see it as essential if it requires lots of work, or increases chances of things not working.
  • Mon, Nov 2, 2020, 3:52 PM
    @Dave Foord - Interesting idea - cheers. Have forwarded to staff. Utterly makes sense. Much appreciated
  • Mon, Nov 2, 2020, 4:02 PM
    There are "Text" attributes to configure for each drop zone (e.g. "Drop Here") but unfortunately they don't seem to take effect. This would have been a seamless solution with no necessary fiddling through other applications. Main issue is why don't they work - for me at least - ? Is this a known/unknown bug ?
  • Tim at Lone Pine Koala Sanctuary
    Mon, Nov 2, 2020, 4:06 PM
    Are you attempting the question using a screen-reader, or just using your eyeballs?
  • Mon, Nov 2, 2020, 4:19 PM
    Strictly eyeballs. The drop zones are visible but as they are semi-transparent and have no text within them, when they are rendered on a white background visibility drops quite a lot, see https://drive.google.com/file/d/10-2X-gY5BIBwiKfhhFZcInCVIT-vVH4e/view?usp=sharing
1 2 3 4 5
Please login to post comments