Drag and drop into text
Question types ::: qtype_ddwtos
Maintained by
Tim Hunt,
Jamie Pratt,
Mahmoud Kassaei,
Phil Butcher
A drag and drop question type where missing words have to be dragged into gaps in a paragraph of text.
Latest release:
197 sites
135 downloads
54 fans
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.
Demonstration of this question type courtesy of Dot Garman.
Sets
This plugin is part of set Open University.
Contributors
Tim Hunt (Lead maintainer)
Jamie Pratt: Developer
Mahmoud Kassaei: Developer
Phil Butcher: Question type designer
Colin Chambers: Developer
Please login to view contributors details and/or to contact them
we have a puzzling problem concerned with the question type
„Drag and drop into text"
Moodle version: 2.9.1+ (Build: 20150716)
our situation is, we develop „Drag and drop into text" questions
in a particular course. Out of that course we can successfully export
questions of that type. In our case we made a backup of that
course. We are able to restore the course on another server (same Moodle Version)
with the .mbz-file. If we however try to export questions
from that newly created course (other Moodle instance), the export fails.
error message:
Can not find data record in database table question_ddwtos.
debugger:
Debug info: SELECT * FROM {question_ddwtos} WHERE questionid = ?
[array (
0 => '93',
)]
Error code: invalidrecord
Stack trace:
line 1453 of /lib/dml/moodle_database.php: dml_missing_record_exception thrown
line 1429 of /lib/dml/moodle_database.php: call to moodle_database->get_record_select()
line 109 of /question/type/gapselect/questiontypebase.php: call to moodle_database->get_record()
line 89 of /question/editlib.php: call to qtype_gapselect_base->get_question_options()
line 767 of /question/format.php: call to get_questions_category()
line 1767 of /lib/questionlib.php: call to qformat_default->exportprocess()
line 4361 of /lib/filelib.php: call to question_pluginfile()
line 37 of /pluginfile.php: call to file_pluginfile()
So I assume, that the backup prozess creates an .mbz-file that does not
include the SQL-Statement which inserts the records corresponding to that
type of question in the table mdl_question_ddwtos (I think they take care
of prefixes).
Is that a bug in Moodle ? How can we create fully functioning course on other
Moodle instances, i.e. course from which are able to export that (all) question type
Are there other dependencies ?
Best,
Sonja
In fact I've managed to include "blank answers" assigning the html code   to one of the items. It renders a blank square that can be dragged and dropped.
Is there an upgrade to 3+ foreseen?
Thank you!
--
MC
If we want to implement this behavior into the "drag and drop text questions" ourselves, where in the source code would be the appropriate place?
I could imagine to program my own question type "Drag Drop LATeX", which inherits from the existing D'n'D classes, but implements Javascript for MathJAX.
I am very grateful for any information.
Yours sincerely Achim
I think there is a race-condition between D'n'D javascript and MathJAX javascript.
I had a glance at ddwtos.js. There is a method "initializer" which calls "set_padding_sizes_all()".
My guess is, that, if LaTeX would be rendered before this method is called, everything should work fine.
Could anyone assist me here? I think this could be helpful for everyone developing mathematical/technical content!
Yours sincerly Achim
I cannot drag from my mobile it is scrolling the screen when trying to drag.
I can do this on mobile phone browser???
"Instead of dragging answers into gaps, the answer will be clicked to select and then a gap will be clicked to drop into"