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

Exporting/importing several question categories at once

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 1.9.5, 2.8.2, 3.2.3, 3.2.4, 3.3, 3.4.3, 3.5
    • Questions
    • MOODLE_19_STABLE, MOODLE_28_STABLE, MOODLE_32_STABLE, MOODLE_33_STABLE, MOODLE_34_STABLE, MOODLE_35_STABLE
    • Hide

      1. Go to the "Question bank"->"Import". Check "Moodle XML format" and click on "Choose a file...". Select file "test.xml". Click on "Import".
      Go to the "Question bank"->"Category". The result is this structure of category:
      Default for Front page (0)

      • first (3)
      • - sub_first_1 (10)
      • - sub_first_2 (5)
      • - - sub_first_2_1 (6)
      • - - sub_first_2_2 (4)
      • - sub_first_3 (5)
      • second (3)
      • - sub_second_1 (3)
      • - sub_second_2 (3)
      • - sub_second_3 (3)
      • - - sub_second_3_1 (10)
      • - - sub_second_3_2 (3)
      • - - sub_second_3_3 (3)
      • third (3)
      • - sub_third_1 (5)
      • - sub_third_2 (5)
      • - sub_third_3 (5)
        2. Go to the "Question bank"->"Export". Check "Moodle XML format", check category "Default for Front page" and click on "Export question to file".
        Save file. Saved file must be equal test.xml, except comments.
        3. Export one category. Go to the "Question bank"->"Export". Check "Moodle XML format", check category "sub_first_2_2" and click on "Export question to file".
        Save file. Saved file must be equal test4.xml, except comments.
        5. Export several category on one level. Go to the "Question bank"->"Export". Check "Moodle XML format", check categories "first" and "second" and click on "Export question to file". Make sure that when you check parent category, it's children categories are selected automatically.
        Save file. Create new course. Go to the "Question bank"->"Import". Check "Moodle XML format" and click on "Choose a file...". Select saved file. Click on "Import".
        Go to the "Question bank"->"Category". The result is this structure of category:
        Default for Front page (0)
      • first (3)
      • - sub_first_1 (10)
      • - sub_first_2 (5)
      • - - sub_first_2_1 (6)
      • - - sub_first_2_2 (4)
      • - sub_first_3 (5)
      • second (3)
      • - sub_second_1 (3)
      • - sub_second_2 (3)
      • - sub_second_3 (3)
      • - - sub_second_3_1 (10)
      • - - sub_second_3_2 (3)
      • - - sub_second_3_3 (3)
        Delete course with questions and categories.
        6. Export several category on different levels. Go to the "Question bank"->"Export". Check "Moodle XML format", check categories "first" and "sub_second_1" and click on "Export question to file".
        Save file. Create new course. Go to the "Question bank"->"Import". Check "Moodle XML format" and click on "Choose a file...". Select saved file. Click on "Import".
        Go to the "Question bank"->"Category". The result is this structure of category:
        Default for Front page (0)
      • first (3)
      • - sub_first_1 (10)
      • - sub_first_2 (5)
      • - - sub_first_2_1 (6)
      • - - sub_first_2_2 (4)
      • - sub_first_3 (5)
      • second (0)
      • - sub_second_1 (3)
        Delete course with questions and categories.
        7. Go to the "Question bank"->"Import". Check "Moodle XML format" and click on "Choose a file...". Select file "testsystem.xml". Click on "Import".
        Go to the "Question bank"->"Category". The result is this structure of category:
        Default for Front page (0)
      • first (3)
      • - sub_first_1 (10)
      • - sub_first_2 (5)
      • - - sub_first_2_1 (6)
      • - - sub_first_2_2 (4)
      • - sub_first_3 (5)
      • second (3)
      • - sub_second_1 (3)
      • - sub_second_2 (3)
      • - sub_second_3 (3)
      • - - sub_second_3_1 (10)
      • - - sub_second_3_2 (3)
      • - - sub_second_3_3 (3)
      • third (3)
      • - sub_third_1 (5)
      • - sub_third_2 (5)
      • - sub_third_3 (5)
        Default for System (0)
      • first_system (1)
      • - sub_first_system_1 (1)
      • - sub_first_system_2 (1)
      • - sub_first_system_3 (1)
        8. Go to the "Question bank"->"Export". Check "Moodle XML format", check categories "first" and "sub_first_system_1" and click on "Export question to file".
        Save file. Create new course. Go to the "Question bank"->"Import". Check "Moodle XML format" and click on "Choose a file...". Select saved file. Click on "Import".
        Go to the "Question bank"->"Category". The result is this structure of category:
        Default for Front page (0)
      • first (3)
      • - sub_first_1 (10)
      • - sub_first_2 (5)
      • - - sub_first_2_1 (6)
      • - - sub_first_2_2 (4)
      • - sub_first_3 (5)
        Default for System (0)
      • first_system (1)
      • - sub_first_system_1 (2)
      • - sub_first_system_2 (1)
      • - sub_first_system_3 (1)
        Delete course with questions and categories.
        9. Go to the "Question bank"->"Export". Check "Moodle XML format", check categories "first" and "sub_first_system_1" and uncheck "Write context to file". Click on "Export question to file".
        Save file. Create new course. Go to the "Question bank"->"Import". Check "Moodle XML format" and click on "Choose a file...". Select saved file. Click on "Import".
        Go to the "Question bank"->"Category". The result is this structure of category:
        Question categories for 'Course: <name of course>'
        Default for Front page (0)
      • first (3)
      • - sub_first_1 (10)
      • - sub_first_2 (5)
      • - - sub_first_2_1 (6)
      • - - sub_first_2_2 (4)
      • - sub_first_3 (5)
        Default for System (0)
      • first_system (0)
      • - sub_first_system_1 (1)
        Question categories for 'System'
        Default for System (0)
      • first_system (1)
      • - sub_first_system_1 (2)
      • - sub_first_system_2 (1)
      • - sub_first_system_3 (1)
        Delete course with questions and categories.
      Show
      1. Go to the "Question bank"->"Import". Check "Moodle XML format" and click on "Choose a file...". Select file "test.xml". Click on "Import". Go to the "Question bank"->"Category". The result is this structure of category: Default for Front page (0) first (3) - sub_first_1 (10) - sub_first_2 (5) - - sub_first_2_1 (6) - - sub_first_2_2 (4) - sub_first_3 (5) second (3) - sub_second_1 (3) - sub_second_2 (3) - sub_second_3 (3) - - sub_second_3_1 (10) - - sub_second_3_2 (3) - - sub_second_3_3 (3) third (3) - sub_third_1 (5) - sub_third_2 (5) - sub_third_3 (5) 2. Go to the "Question bank"->"Export". Check "Moodle XML format", check category "Default for Front page" and click on "Export question to file". Save file. Saved file must be equal test.xml, except comments. 3. Export one category. Go to the "Question bank"->"Export". Check "Moodle XML format", check category "sub_first_2_2" and click on "Export question to file". Save file. Saved file must be equal test4.xml, except comments. 5. Export several category on one level. Go to the "Question bank"->"Export". Check "Moodle XML format", check categories "first" and "second" and click on "Export question to file". Make sure that when you check parent category, it's children categories are selected automatically. Save file. Create new course. Go to the "Question bank"->"Import". Check "Moodle XML format" and click on "Choose a file...". Select saved file. Click on "Import". Go to the "Question bank"->"Category". The result is this structure of category: Default for Front page (0) first (3) - sub_first_1 (10) - sub_first_2 (5) - - sub_first_2_1 (6) - - sub_first_2_2 (4) - sub_first_3 (5) second (3) - sub_second_1 (3) - sub_second_2 (3) - sub_second_3 (3) - - sub_second_3_1 (10) - - sub_second_3_2 (3) - - sub_second_3_3 (3) Delete course with questions and categories. 6. Export several category on different levels. Go to the "Question bank"->"Export". Check "Moodle XML format", check categories "first" and "sub_second_1" and click on "Export question to file". Save file. Create new course. Go to the "Question bank"->"Import". Check "Moodle XML format" and click on "Choose a file...". Select saved file. Click on "Import". Go to the "Question bank"->"Category". The result is this structure of category: Default for Front page (0) first (3) - sub_first_1 (10) - sub_first_2 (5) - - sub_first_2_1 (6) - - sub_first_2_2 (4) - sub_first_3 (5) second (0) - sub_second_1 (3) Delete course with questions and categories. 7. Go to the "Question bank"->"Import". Check "Moodle XML format" and click on "Choose a file...". Select file "testsystem.xml". Click on "Import". Go to the "Question bank"->"Category". The result is this structure of category: Default for Front page (0) first (3) - sub_first_1 (10) - sub_first_2 (5) - - sub_first_2_1 (6) - - sub_first_2_2 (4) - sub_first_3 (5) second (3) - sub_second_1 (3) - sub_second_2 (3) - sub_second_3 (3) - - sub_second_3_1 (10) - - sub_second_3_2 (3) - - sub_second_3_3 (3) third (3) - sub_third_1 (5) - sub_third_2 (5) - sub_third_3 (5) Default for System (0) first_system (1) - sub_first_system_1 (1) - sub_first_system_2 (1) - sub_first_system_3 (1) 8. Go to the "Question bank"->"Export". Check "Moodle XML format", check categories "first" and "sub_first_system_1" and click on "Export question to file". Save file. Create new course. Go to the "Question bank"->"Import". Check "Moodle XML format" and click on "Choose a file...". Select saved file. Click on "Import". Go to the "Question bank"->"Category". The result is this structure of category: Default for Front page (0) first (3) - sub_first_1 (10) - sub_first_2 (5) - - sub_first_2_1 (6) - - sub_first_2_2 (4) - sub_first_3 (5) Default for System (0) first_system (1) - sub_first_system_1 (2) - sub_first_system_2 (1) - sub_first_system_3 (1) Delete course with questions and categories. 9. Go to the "Question bank"->"Export". Check "Moodle XML format", check categories "first" and "sub_first_system_1" and uncheck "Write context to file". Click on "Export question to file". Save file. Create new course. Go to the "Question bank"->"Import". Check "Moodle XML format" and click on "Choose a file...". Select saved file. Click on "Import". Go to the "Question bank"->"Category". The result is this structure of category: Question categories for 'Course: <name of course>' Default for Front page (0) first (3) - sub_first_1 (10) - sub_first_2 (5) - - sub_first_2_1 (6) - - sub_first_2_2 (4) - sub_first_3 (5) Default for System (0) first_system (0) - sub_first_system_1 (1) Question categories for 'System' Default for System (0) first_system (1) - sub_first_system_1 (2) - sub_first_system_2 (1) - sub_first_system_3 (1) Delete course with questions and categories.

      It would be really convenient to be able to select multiple question categories for export.

        1. categories checkboxes UI.png
          18 kB
          Simey Lameze
        2. test.xml
          211 kB
          Kalinkina Maria
        3. test4.xml
          6 kB
          Kalinkina Maria
        4. testsystem.xml
          5 kB
          Kalinkina Maria

            moodle.com Moodle HQ
            oa_sychev Oleg Sychev
            Simey Lameze Simey Lameze
            Votes:
            15 Vote for this issue
            Watchers:
            16 Start watching this issue

              Created:
              Updated:

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