Images not loading

Images not loading

par Rich Calhoun,
Nombre de réponses : 2

One of my users has created lesson modules that use questions from his question bank.  The problem is that images attached to those questions do not load in the lesson module, but do load if the same questions are used in a quiz.  I know the image works, if I pull the image URL from the quiz or directly from the question bank and go directly to the image url it loads fine.  If I try the same process from the lesson module, moodle can't find it.

Has anybody come across this behavior before?  Does anybody know how to fix it?

Moyenne des évaluations  -
En réponse à Rich Calhoun

Re: Images not loading

par Joseph Rézeau,
Avatar Core developers Avatar Particularly helpful Moodlers Avatar Plugin developers Avatar Testers Avatar Translators

1.- Which version of Moodle?

2.- Which method is used to insert the images in the Quiz questions? and where are the images pulled from (teacher's private files / uploaded from local computer / Web URL / repository ???

3.- Which question type is (are) used?

4.- Where exactly are the images placed (question text, answers, etc.)

5. How are the quiz questions bank "used" in the lesson activity? I suppose they are put inside a category which is then exported (which format: Gift format / Moodle XML format  / XHTML format)?

I've just tried on a Moodle 2.7 test site and the images are correctly imported into the Lesson.

Joseph

En réponse à Joseph Rézeau

Re: Images not loading

par Jean-Michel Védrine,

I will complete Joseph's answer as I have been working on images in lesson issues.

  • In Moodle 2.7 images in question text are imported (in lesson question page content) if you use Moodle XML format to export the question from the question bank and import them in lesson. Images in other fields are not imported because lesson don't support images in answers and responses. It is also possible to use my gift with media plugin to prepare your questions with images and import them in lesson (this plugin only support import and don't currently support export so it is not possible to use it to export questions with images from the question bank)
  • In Moodle 2.8 available in November images in answer and feedback (imported in lesson "responses") are also imported. This is possible because lesson has been modified and there is now an editor with a filepicker for answers and responses when you create or edit questions in lesson.
Here is a full description of the lesson fields now supporting images and medias
  1. Multichoice question support images in content, answers and responses
  2. Matching questions support images in content and answers but not in Matches with answer (not possible as they appear in a select drop down)
  3. Essay question support images in content only. There is an issue in the tracker to add an editor for the teacher comments when he grade the student essays but this is a separate issue
  4. Numerical, True/False and Shortanswer questions support images in content and response. Additionally I think there is a bug and answer should be just a text field, not a textarea as it is now.

It was not easy to add images support to lesson, so please if you find something not working when Moodle 2.8 will be out, create an issue in the tracker.

Moyenne des évaluations Useful (1)