Exporting/importing several question categories at once: Difference between revisions
Line 2: | Line 2: | ||
I have this structure. | I have this structure. | ||
[[ | [[{{ns:file}}:structure.png]] | ||
My first category contains these questins. | My first category contains these questins. | ||
[[ | [[{{ns:file}}:question_for_my_first_category.png]] | ||
Subcategory first category contains these questins. | Subcategory first category contains these questins. | ||
[[ | [[{{ns:file}}:question_for_subcategory_first_category.png]] | ||
==Interface== | ==Interface== |
Revision as of 19:06, 28 October 2014
Current save in XML file
I have this structure.
My first category contains these questins.
Subcategory first category contains these questins.
Interface
The new interface, which lets you export several question categories at once.
To activate the export / import multiple categories question, select "Write a several question categories".
After choosing "Write a several question categories" look of combobox list elements will be changed as it shown on the picture.
How to change the interface is described below .
1. Category you want to export, are chosen as you can watch at the image.
2. To select a diapason of categories, select a category which is the first one in the diapason, hold down the Shift key and select the last category in diapason.
3. Select categories with subcategories. When you click on the category for the first time, only this category is selected. When you click on the category for the second time, the categories that are one level below, are selected too.
When you click on the category for the third time, all selections are canceled.
To select a category with all its subcategories, press the Ctrl key and click on the category.
4. Select the diapason of categories with subcategories. To select a diapason of categories with all their subcategories, select a category which is the first one in diapason , hold down the Shift + Ctrl keys and select the last category in the diapason.
5. Select all categories. Select the top line in the drop-down box.
To achieve the desired result, I have to use it.
Change export/import function and file structure
I think that these changes will not affect the file format.
What about export/import function. After analyzing file "...\moodle\question\format\xml\format.php" I made a conclusion that only one category was saved, so for implementation of this interface I have to change this functions.