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

Admin options for when a user starts a preview

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.5
    • 2.3.2
    • Questions
    • MOODLE_23_STABLE
    • MOODLE_25_STABLE
    • 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.

      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'.

            timhunt Tim Hunt
            timhunt Tim Hunt
            Dan Poltawski Dan Poltawski
            Rossiani Wijaya Rossiani Wijaya
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.