Note:

If you want to create a new page for developers, you should create it on the Moodle Developer Resource site.

Save category description in Moodle XML import/export: Difference between revisions

From MoodleDocs
Line 7: Line 7:


== Current XML structure ==
== Current XML structure ==
<question type="category">
<question type="category">
   <category>
   <category>
      <text>$course$/[Parents category/]<Category></text>
    <text>
      $course$/[ Parent category/ ]Current category
    </text>
   </category>
   </category>
</question>
</question>
The amount of parental categories can be from more or equally to zero.


== Proposed XML structure ==
== Proposed XML structure ==

Revision as of 10:29, 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/ ]Current category
   </text>
 </category>

</question>

The amount of parental categories can be from more or equally to zero.

Proposed XML structure

<question type="category">

 <category>
     <text>$course$/My First Category</text>
 </category>

</question>

Old export compatibility problem