Moodle Plugins directory: Drag and drop markers | Moodle.org
Drag and drop markers
Question types ::: qtype_ddmarker
Maintained by
Tim Hunt,
Jamie Pratt,
Phil Butcher
Part of set Open University.
The student can drag markers to indicate key features on an image.
Latest release:
36 sites
30 downloads
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.
Contributors
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
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?
We need some help with Drag and Drop question.
Hi
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+
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.
$markertext = html_writer::span($drag->text, 'markertext');
for this
$markertext = html_writer::span(format_string($drag->text), 'markertext');