Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-38560 META: Images management in lesson questions
  3. MDL-38505

Permit lesson to import images in question text when importing questions

    XMLWordPrintable

Details

    • Sub-task
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.3.6, 2.4.3
    • 2.6
    • Lesson
    • MOODLE_23_STABLE, MOODLE_24_STABLE
    • MOODLE_26_STABLE
    • Hide
      • All tests should be done with debugging set to developer level
      • Import the files attached to this issue in a lesson (for *.xml files uses Moodle XML format and for *.zip files use Blackboard format)
      • Verify that no error, warning are displayed during import or after
      • Verify that each question has an image (or a sound for one of the questions) in the question text and can be edited with no problem
      • Do some attempts to the lesson as a student
      • As a teacher go to various areas of the lesson including preview, reports, statistics, grading essay (unfortunately "Email graded essays" feature is broken and can' be tested see MDL-39691)
      • If possible, test with your own questions files, but please note that only Moodle XML and BLackboard format support images and medias and that this issue is only about images in question texts, images in answers and feedbacks are not working at that stage (this will be the object of MDL-32870 and MDL-38540)
      Show
      All tests should be done with debugging set to developer level Import the files attached to this issue in a lesson (for *.xml files uses Moodle XML format and for *.zip files use Blackboard format) Verify that no error, warning are displayed during import or after Verify that each question has an image (or a sound for one of the questions) in the question text and can be edited with no problem Do some attempts to the lesson as a student As a teacher go to various areas of the lesson including preview, reports, statistics, grading essay (unfortunately "Email graded essays" feature is broken and can' be tested see MDL-39691 ) If possible, test with your own questions files, but please note that only Moodle XML and BLackboard format support images and medias and that this issue is only about images in question texts, images in answers and feedbacks are not working at that stage (this will be the object of MDL-32870 and MDL-38540 )

    Description

      Objectif

      Lesson activity uses question bank import formats to import questions in lessons page.
      There are currently 2 imports format able to import images using the same mecanism (draft files): Blackboard and Moodle XML. In the future webct import format will use the same mecanism too.
      I think it would be quite easy to add a few lines of codes to lesson so that images are imported.
      I will submit a patch.

      Known limitation

      Unfortunately currently it is not possible to import images in lesson questions multichoice answers. But this is because of the limitations of the lesson code: currently when you create/edit a question in lesson, the filepicker is not available in the editor for multichoice answers. If in the future lesson is enhanced to support images in multichoice answers (I think there is already an issue in the tracker for that) it will be possible to also add support to import images in multichoice answers.

      Attachments

        1. multichoice.xml
          19 kB
        2. Sample Test with Images.ZIP
          66 kB
        3. truefalse.xml
          3 kB

        Issue Links

          Activity

            People

              jmvedrine Jean-Michel Vedrine
              jmvedrine Jean-Michel Vedrine
              Rossiani Wijaya Rossiani Wijaya
              Dan Poltawski Dan Poltawski
              Mark Nelson Mark Nelson
              Ilya Tregubov, Kevin Percy, Mathew May, Mihail Geshoski, Shamim Rezaie
              Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                18/Nov/13