Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-26511

Adding images in Cloze vertical and horizontal display multiplechoices subquestions

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Reopened
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.0.3
    • Fix Version/s: None
    • Component/s: Questions
    • Labels:
    • Testing Instructions:
      Hide

      Mainly import the some questions from https://tracker.moodle.org/secure/attachment/32973/questions-T-26511_with_or_no_images-20130604-2349.xml which put specific images in the question text, answers for multi and feedback for all question types and the same questions without images.

      Check the behaviour of set_subquestions_elements_itemid($question, '@@PLUGINFILE@@');
      and looking at the file table records that the setting of image links are only created if there is an image in the given element. This also verify that the import is OK.

      Then edit copy the questions. test the decode verify display, save the question. This will test the filtering process
      set_subquestions_elements_itemid($question, 'draftfile.php');

      Create a copy of the question to another category.

      Move the questions to another category and context.

      Create a quiz, test OK.

      Show
      Mainly import the some questions from https://tracker.moodle.org/secure/attachment/32973/questions-T-26511_with_or_no_images-20130604-2349.xml which put specific images in the question text, answers for multi and feedback for all question types and the same questions without images. Check the behaviour of set_subquestions_elements_itemid($question, '@@PLUGINFILE@@'); and looking at the file table records that the setting of image links are only created if there is an image in the given element. This also verify that the import is OK. Then edit copy the questions. test the decode verify display, save the question. This will test the filtering process set_subquestions_elements_itemid($question, 'draftfile.php'); Create a copy of the question to another category. Move the questions to another category and context. Create a quiz, test OK.
    • Affected Branches:
      MOODLE_20_STABLE
    • Pull from Repository:
    • Pull Master Branch:

      Description

      This is a follow up of adding HTML to multiplechoice question MDL-24594.
      In 1.9 users can put image in Cloze multiplechoice answers so we should implement this in 2.0..
      The HTML editor is already there for the questiontext that is used to generate the subquestions answers.
      This will need a very specific code given that the question images of the main cloze question will be used answers of the child multiplechoice questions.
      This could not be implement in the select element classic multichoice.

      The coding will be more complex and necessitates a distinct project.

        Attachments

        1. all_images.jpg
          all_images.jpg
          202 kB
        2. cloze-with-image.xml
          0.5 kB
        3. Menu_in-line.jpg
          Menu_in-line.jpg
          249 kB
        4. questions-T100-import1.9mix-20110314-1202.xml
          52 kB
        5. questions-T1-export 26511 selection-20130424-2301.xml
          477 kB
        6. questions-T-26511_with_or_no_images-20130604-2349.xml
          93 kB
        7. questions-T-26511-Default for Mis.xml
          46 kB
        8. screenshot-1.jpg
          screenshot-1.jpg
          75 kB
        9. screenshot-2.jpg
          screenshot-2.jpg
          132 kB
        10. screenshot-3.jpg
          screenshot-3.jpg
          68 kB

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              ppichet Pierre Pichet
              Peer reviewer:
              Tim Hunt
              Integrator:
              Dan Poltawski
              Participants:
              Component watchers:
              Tim Hunt, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              5 Vote for this issue
              Watchers:
              8 Start watching this issue

                Dates

                Created:
                Updated: