Drag and drop onto image

As of Moodle 3.0, this question type is part of the standard Moodle release. That is why there is no plugin from Moodle 3.x. You don't need one!
Price option: Free

Supports Moodle 2.2-2.9 See all versions
Latest release: 11 years ago
Installations: 56
Downloads (last 90 days): 32

Frankenstyle name: qtype_ddimageortext
Question types
Open University

Comments

Comments are no longer open for new posts. Existing comments remain available to read.

2.5-compatible code is on github. Download the zip from https://github.com/moodleou/moodle-qtype_ddimageortext/. We are not going to publish it here until we have finished testing it.
HI , I have updated to 2.5 and the d&d onto images and markers options do not load the editor so I cannot add an image. Also cannot expand menu. Any suggestions?
OK. Never mind. I just started a new Preview of the quiz and all 20 items showed up. Wierd.
Great new question type. I couldn't find a limit to number of answers documented. I created a chart with 20 items for students to place and only 9 items show up. Is that limit or is something else up? Thanks.
Hi, I'd like to use this qtype for a special purpose: the dragable images should not display a frame (group color) and the drop-zones should be in the same size as the dragable images.
(I managed to get rid of the frame (group colors) via style.css)
Can you point me to the location where the sizing of the drop-zones happen?
The fields should show up. Can you try a different web browser?
I'm using moodle 2.3 amd I miss the semitransparent background of the draggable elements (words) and the semitransparent fields on background images like in your screenshot. So small fields are difficult to log. And I can't change a logged element (if I missed the right field). How can I get the white/semitransparent background? Is it possible to place to background pictures side by side (one with white fields, one without)?
Thank you
Hi Nina,
The size of dragable and background images is reduced if they are above a certain limit. The image sizes are reduced when they are uploaded so that the aspect ratio of the image remains the same but so that the sizes do not exceed limits as set at the top of ddimageortext/questiontype.php :
define('QTYPE_DDIMAGEORTEXT_BGIMAGE_MAXWIDTH', 600);
define('QTYPE_DDIMAGEORTEXT_BGIMAGE_MAXHEIGHT', 400);
define('QTYPE_DDIMAGEORTEXT_DRAGIMAGE_MAXWIDTH', 150);
define('QTYPE_DDIMAGEORTEXT_DRAGIMAGE_MAXHEIGHT', 100);
Jamie
The background and the dragable images seem to be sized arbitrarily when I add them to the question. Is there any way they can either stay the original size or I can specify the size I want?
I have just tried to install into Moodle 2.4.3, but no go. sad
As predicted, the 2.3 version of the qtype worked fine in Moodle 2.4.
Thank you for your quick responses.
In fact the ideas proposed by phil does not match the expected report on one type of exercise (I had already considered this possibility, after reading a similar response ....).
What I interreserai this will have some indications of lines of code to change to get the result that I describe in the previous post.Comment find the characteristics of the label (edge, ...) Viewfinder ( pointer) ...
Meci for any help.
Philippe
Philippe, I can see what you are getting at, which is different from what we provide. The closest you could get using our question types would be to place your labels below the image and number them. Then provide markers which are just numbers so that only numbers are dragged onto the image. Not quite what you want
Not exactly there to build on the label and a border that I would like to delete. In addition I would like to turn the viewfinder dramatically change its position relative to the label and connect the content of the label with a line visible.
I could change thanks to the explanations given image and label sizes, making the label background transparent (apparently), but for the rest I really hurt ....
If assistance is possible I would like to try the transformation of drag and drop marker.
Thank you
Have you seen the drag-and-drop markers question type? That sounds like what you are looking for.