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

Admin options for when a user starts a preview

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.3.2
    • Fix Version/s: 2.5
    • Component/s: Questions
    • Labels:
    • Testing Instructions:
      Hide

      1. As admin, go to Admin -> Plugins -> Question types -> Question preview defaults and set some options.
      2. Create a new user 'teacher', and enrol that user as a Teacher in a course.
      3. Log in as 'teacher' and go to the course question bank.
      4. Preview a question (create on if necessary).
      5. Verify that the display options used are the ones the admin set.
      6. Change some options, and click 'Start again with these options'
      7. Log out.
      8. Log back in as 'teacher', go back to the course, and preview another question. The preferences used should be the ones you set in step 6.

      Show
      1. As admin, go to Admin -> Plugins -> Question types -> Question preview defaults and set some options. 2. Create a new user 'teacher', and enrol that user as a Teacher in a course. 3. Log in as 'teacher' and go to the course question bank. 4. Preview a question (create on if necessary). 5. Verify that the display options used are the ones the admin set. 6. Change some options, and click 'Start again with these options' 7. Log out. 8. Log back in as 'teacher', go back to the course, and preview another question. The preferences used should be the ones you set in step 6.
    • Affected Branches:
      MOODLE_23_STABLE
    • Fixed Branches:
      MOODLE_25_STABLE
    • Pull from Repository:
    • Pull Master Branch:

      Description

      At the moment, when a new user first previews a question, the display option are taken from some hard-coded values in question_preview_options::__construct().

      Instead, we would like admin options for these.

      This would require a new admin settings page

      • Site administration
        • Plugins
          • Question types
            • Manage question types
            • Default settings <-- this is the new one.

      For now there will be one group of settings here, with title "Default display options when previewing a question." There will be those 7 settings from the question preview window.

      These settings should be stored in the config_plugings table, with plugin = 'question'.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  14/May/13