Joseph Rézeau hozzászólásai

Moodle in English -> Glossary -> Using Categories with Glossary -> Re: Using Categories with Glossary

Joseph Rézeau írta időpontban
Kép Kép Kép Kép
Hi Lisa,
Which version of Moodle are you using? I think that in any version it is possible to put a glossary entry into as many different categories as you like, whether adjacent or not. How many different categories do you have in your glossary?
Joseph
Kép Kép Kép Kép
Adriane,
One (minor) display bug occurs when I put on the same page of a Quiz one drag and drop matching question (Q1) followed by one drag and drop ordering question (Q2), and that drag and drop ordering question (Q2) is set as horizontal display. Upon clicking and dragging one item of Q2, that item is positioned above the other items baseline and it is not possible to drag it any lower, which makes the activity not impossible but rather difficult to achieve. See attached screen shot.
Joseph
image00.jpg csatolmány
Kép Kép Kép Kép
Hi Adriane,
Just discovered a bug in your drag&drop ordering question. In teacher preview mode, the Fill with correct option does not work. Here is a fix. In order/questiontype.php, replace
 function get_correct_responses(&$question, &$state) {
 $responses = array();
 foreach ($state->options->subquestions as $sub) {
 foreach ($sub->options->answers as $answer) {
 if (1 == $answer->fraction && $sub->questiontext) {
 $responses[$sub->id] = $answer->id;
 }
 }
 }
 return empty($responses) ? null : $responses;
 }
with
 function get_correct_responses(&$question, &$state) {
 $responses = array();
 foreach ($question->options->subquestions as $sub) {
 $responses[$sub->code] = $sub->answertext;
 }
 return empty($responses) ? null : $responses;
 }

NOTE.- See attached screen shot to view the different rendering with JS enabled/disabled. With JS disabled it would look nicer if the items were ordered (and the dropdown list numbers ranged from 1 to ...n). But I do not know how to do it and - given the low number of people who surf the Internet with JS disabled anyway - I do not think it worthwhile to spend time on it.

Joseph
image00.jpg csatolmány
Kép Kép Kép Kép
Adriane,
When I added the new Import/Export methods to my own REGEXP question type recently and looked at your own work I had indeed wondered why you were testing the horizontal parameter!
Joseph