Exporting/importing several question categories at once
Interface
The new interface, which lets you export several question categories at once.
To activate the export / import multiple categories question, click "Write a several".
After clicking "Write a several" combobox list elements is replaced by a tree of categories 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
As described in the first paragraph, the file structure is described as follows: a description of the category, followed by this categories questions. An example is described in "Current save in XML file".
If this method is used in Moodle now, then I can also use it.
But if you want to save the connection question and category, I can add a property "parent" to the tag "question". For example, "<question type="cloze" parent="По умолчанию для Главная страница/My first category">".
What variant is better? And in that and in other case, support the existing file format is preserved.