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

GIFT question import/export format should support tags

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.7.5, 3.8.2
    • 3.9
    • Questions
    • MOODLE_37_STABLE, MOODLE_38_STABLE
    • MOODLE_39_STABLE
    • Hide
      1. Create a category in the question bank of a course.
      2. Create one or more new questions of types supported by GIFT (e.g. truefalse).
      3. Set an 'ID number' on one or more of the questions.
      4. Set some tags on some of the questions.
      5. Export that category from your question bank in GIFT format.
      6. Verify that if you open that file in a text editor, you can see the tag and idnumber information there.
      7. Create a new course.
      8. Go to Question bank -> Import there.
      9. Import the file you just exported.
      10. Verify that all the idnumbers and tags are imported.
      Show
      Create a category in the question bank of a course. Create one or more new questions of types supported by GIFT (e.g. truefalse). Set an 'ID number' on one or more of the questions. Set some tags on some of the questions. Export that category from your question bank in GIFT format. Verify that if you open that file in a text editor, you can see the tag and idnumber information there. Create a new course. Go to Question bank -> Import there. Import the file you just exported. Verify that all the idnumbers and tags are imported.

    Description

      Suggested format:

      // Here is a question.
      // [tag:add] [tag:basic] [id:four]
      ::Addition question:: What is 2 + 2? {#4}
      

      The only touble with with that is that it is English-centric. On the other hand, it is more self-explanatory than some convention involving only punctuation characters, and GIFT syntax (https://docs.moodle.org/38/en/GIFT_format) already includes [html], [moodle], [plain] and [markdown].

      This has been requested a few times, I think. Most recent request at https://moodle.org/mod/forum/discuss.php?d=390350

      Attachments

        Activity

          People

            timhunt Tim Hunt
            timhunt Tim Hunt
            Neill Magill Neill Magill
            Víctor Déniz Falcón Víctor Déniz Falcón
            Anna Carissa Sadia Anna Carissa Sadia
            Safat Shahin, Tim Hunt, Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Stevani Andolo
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              15/Jun/20

              Time Tracking

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 5 hours, 40 minutes
                5h 40m