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

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.3.6, 2.4.3
    • Fix Version/s: 2.6
    • Component/s: Lesson
    • Testing Instructions:
      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 )
    • Affected Branches:
      MOODLE_23_STABLE, MOODLE_24_STABLE
    • Fixed Branches:
      MOODLE_26_STABLE
    • Pull Master Branch:

      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.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Votes:
                  1 Vote for this issue
                  Watchers:
                  6 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Fix Release Date:
                    18/Nov/13