Save category description in Moodle XML import/export: Difference between revisions
From MoodleDocs
Line 8: | Line 8: | ||
== Current XML structure == | == Current XML structure == | ||
<pre> | |||
<question type="category"> | <question type="category"> | ||
<category> | |||
<text> $course$ / [ Parent category name / ] Current category name </text> | |||
</category> | |||
</question> | </question> | ||
</pre> | |||
The amount of | The amount of block [ Parent category name / ] can be from more or equally to zero. | ||
== Proposed XML structure == | == Proposed XML structure == |
Revision as of 10:45, 18 October 2014
What is not saved?
At this format of import/export in not saved:
1. description of the imported/exported category,
2. description of parental category(categories).
Current XML structure
<question type="category"> <category> <text> $course$ / [ Parent category name / ] Current category name </text> </category> </question>
The amount of block [ Parent category name / ] can be from more or equally to zero.
Proposed XML structure
<question type="category">
<category> <text>$course$/My First Category</text> </category>
</question>