Drag and drop into text
Maintained by
Tim Hunt, Mahmoud Kassaei, Chris Nelson, Jamie Pratt, Phil Butcher
A drag and drop question type where missing words have to be dragged into gaps in a paragraph of text.
Comments
Comments are no longer open for new posts. Existing comments remain available to read.
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
However, you can make this sort of question using drag-drop markers, and possibly the gapfill question type.
Yes, You can tab through place holders and then using arrow buttons (up/right arrows take you forward and down/left arrows take you backwards through the list.