Drag and drop markers
Maintained by
Tim Hunt, Jamie Pratt, Phil Butcher
The student can drag markers to indicate key features on an image.
Comments
Comments are no longer open for new posts. Existing comments remain available to read.
$markertext = html_writer::span($drag->text, 'markertext');
for this
$markertext = html_writer::span(format_string($drag->text), 'markertext');
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.
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+
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?