Difference between revisions of "Exporting/importing several question categories at once"

Jump to: navigation, search
(Testing instraction)
(Testing instraction)
Line 52: Line 52:
  
 
So to achieve the goal I will not have to change the structure of the file.
 
So to achieve the goal I will not have to change the structure of the file.
 
==Testing instraction==
 
 
1. Create a new category.
 
 
2. Add a some questions, to a new category.
 
 
3. Create another category at the same level with the one from step 1.
 
 
4. Add a some questions, to a new category.
 
 
5. Enter the several categories export mode.
 
 
6. Choose created categories.
 
 
7. Press "Export".
 
 
8. Go to another course and import resulting file.
 
 
9. You will get the same structure that was exported.
 

Revision as of 20:45, 22 December 2014

Interface

The new interface, which lets you export several question categories at once.

To activate the export / import multiple categories question, click "Write several".

activate mod.jpg

After clicking "Write several" combobox list elements is replaced by a tree of categories as it shown on the picture.

tree categories.jpg

How to change the interface is described below .

1. Category you want to export, are chosen as you can watch at the image.

choose categories .jpg

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.

diapason categories .jpg

3. Select all categories. Select the top line in the drop-down box.

all categories .jpg

To achieve the desired result, I have to use it.

Change export/import function and file structure

Import function does not need to be changed. Importing several question categories works correctly.

Export function needs to be corrected. Now only one question category exported.

Now Moodle has the structure of the file described below.

In the file category describes then questions describes which belong to the category then next category describes etc. This structure of the file is suitable for export of several question categories. A structure can be represented visually as

[Description category1]

[Description first question of category1]

[Description second question of category1]

[Description third question of category1]

[Description category2]

[Description first question of category2]

[Description second question of category2] .

So to achieve the goal I will not have to change the structure of the file.