Posts made by Joseph Rézeau

Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers Picture of Translators

@Orestes and Geoff (and OP)

Of course in my previous post I was being a bit "dogmatic" about the "normal" use of the Lesson activity.

However, I tend to disagree with Orestes that "question logic can be (ant ought to be) separated from lesson flow logic". In my pedagogy, a Lesson (and a Quiz) need to be constructed with relevant questions which follow one upon another, and certainly not questions chosen "at random". That's why I have no use for the "random questions" feature of the Quiz activity, for example.

Of course I'll have to admit that there are other views in this matter.

@Orestes: The feature you are alluding to has cropped up from time to time over the years in these forums but nothing has come out of it.  For quite a few years, unfortunately, the Lesson module no longer has an active maintainer, unlike the Quiz module, where Tim Hunt is very active. The Lesson module is almost an "orphan" in the Moodle development strategy - at the moment.

Joseph

Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers Picture of Translators

Hi Geoff,

You are right, in the Lesson activity there is no option to directly import questions from the questions bank. The indirect procedure is as follows:

  1. In the Questions bank, group into one category all the questions you want to use in one Lesson activity.
  2. Export that category of questions (Moodle XML format) and save that XML file.
  3. Go the the Lesson where you need those questions.
  4. (Moodle 1.9) On the Edit lesson page, select Expanded view.
  5. Click on the Import questions link at the place where you want to insert questions.
  6. On your computer, select the XML file you previously exported from the questions bank.
  7. That's it!
Average of ratings: Useful (1)
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers Picture of Translators

Geoff is right, there is no possibility to export question pages from the Lesson activity. It is however possible to import questions from the Quiz questions bank into a Lesson.

I expect the lack of that export/import feature can be explained by the very nature of Moodle's Lesson activity, which is fundamentally different from the Quiz activity.

In a Moodle Lesson, the flow of Question pages is controlled by the student's answers or choices. This means that in "normal" use (if there is such a thing as "normal" in this context), each question derives part of its meaning from its immediate context: the question(s) preceding and the question(s) following it. When you keep this in mind, it would ("usually") not make much sense to draw questions from a bank, in order to import them into a Lesson activity.

It would be interesting to hear from the original poster why precisely she needs to "move" questions from one Lesson to another. And to specify how she would "link" those questions one with the other in the new Lesson.

Joseph

Average of ratings: Useful (2)
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers Picture of Translators

Hi Tomasz,

I've upgraded to latest version (by the way, it looks like you changed your GIT url from https://github.com/tmuras/Moodle-Flashcard.git to https://github.com/tmuras/Moodle-Flashcard.

Using Moodle 2.0.3+ (Build: 20110511)  and flashcard $module->version  = 2011041602

#1 ok

#2 I'm still getting the problem when importing a match question ; tried with various questions, still getting error message:

ERROR: Incorrect number of query parameters. Expected 1, got 0.

When I Edit my flashcard set, in Question to import I select a match question from the quiz questions database, and tick the Force reloading from question box. Then Save and Display takes me to next screen where error message is displayed.

Joseph

PS attached 2 matching questions created in Moodle 2.