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

Allow question types to add extra actions to the Question bank edit menu

XMLWordPrintable

    • MOODLE_38_STABLE
    • MOODLE_38_STABLE
    • Hide
      1. Install the latest master branch of https://github.com/moodleou/moodle-qtype_pmatch/.
      2. Go to the question bank in any course, and add a Pattern-match question. Key fields to create a question:
        • Question text: Type frog
        • Answer 1: match(frog)
        • Grade (for answer 1): 100%
      3. Save the question.
      4. Expand the edit menu for the newly created question.
      5. Verify you see the action "Pattern-match testing tool" at the end of the menu.
      6. Verify that selection that action takes you to that tool
      Show
      Install the latest master branch of https://github.com/moodleou/moodle-qtype_pmatch/ . Go to the question bank in any course, and add a Pattern-match question. Key fields to create a question: Question text: Type frog Answer 1: match(frog) Grade (for answer 1): 100% Save the question. Expand the edit menu for the newly created question. Verify you see the action "Pattern-match testing tool" at the end of the menu. Verify that selection that action takes you to that tool

      Several third-party question types have additional screens that could usefully be added to the Edit menus in the question bank. For example:

      • STACK
        • Question tests & deployed variants
        • Tidy question
      • CodeRunner
        • Question test
      • Pattern-match
        • Question testing tool

      So, it would be good to add a new method to the question_type class to allow the question type to add extra actions to the menu if appropriate.

        1. Confirmed fixed.PNG
          169 kB
          Gladys Basiana
        2. image-2019-11-06-19-37-21-514.png
          19 kB
          Tim Hunt

            timhunt Tim Hunt
            timhunt Tim Hunt
            Luca Bösch Luca Bösch
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Gladys Basiana Gladys Basiana
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 30 minutes
                30m

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