Quantcast
Channel: Backup and restore
Viewing all articles
Browse latest Browse all 6815

MBZ specification details

$
0
0
by Michael Simpson.  

As further info - I've poked into it more and I am able to generate a working mbz for a sections and lessons no problem, the db issue arises when I try to add page content to the lesson. I think somewhere my xml for lesson.xml is incorrect, or there is some other supporting structure for page content I've not got right

Below is the pages snippet from the lesson.xml (excuse the annoying copy/paste indentation loss)
<pages>
<page id="1000">
<prevpageid>0</prevpageid>
<nextpageid>1001</nextpageid>
<qtype>20</qtype>
<qoption>0</qoption>
<layout>1</layout>
<display>1</display>
<timecreated>1757666163</timecreated>
<timemodified>1757666163</timemodified>
<title>Page 1</title>
<contents>
<p>This is a test lesson page</p>
</contents>
<contentsformat>1</contentsformat>
<answers>
<answer id="10001">
<jumpto>-1</jumpto>
<grade>0</grade>
<score>0</score>
<flags>0</flags>
<timecreated>1757666163</timecreated>
<timemodified>1757666163</timemodified>
<answer_text>Next</answer_text>
<response>$@NULL@$</response>
<answerformat>0</answerformat>
<responseformat>0</responseformat>
<attempts> </attempts>
</answer>
</answers>
<branches> </branches>
</page>
<page id="1001">
<prevpageid>1000</prevpageid>
<nextpageid>1002</nextpageid>
<qtype>20</qtype>
<qoption>0</qoption>
<layout>1</layout>
<display>1</display>
<timecreated>1757666163</timecreated>
<timemodified>1757666163</timemodified>
<title>Page 2</title>
<contents>
<p>This is a test lesson page 2</p>
</contents>
<contentsformat>1</contentsformat>
<answers>
<answer id="10011">
<jumpto>-40</jumpto>
<grade>0</grade>
<score>0</score>
<flags>0</flags>
<timecreated>1757666163</timecreated>
<timemodified>1757666163</timemodified>
<answer_text>Previous</answer_text>
<response>$@NULL@$</response>
<answerformat>0</answerformat>
<responseformat>0</responseformat>
<attempts> </attempts>
</answer>
<answer id="10012">
<jumpto>-1</jumpto>
<grade>0</grade>
<score>0</score>
<flags>0</flags>
<timecreated>1757666163</timecreated>
<timemodified>1757666163</timemodified>
<answer_text>Next</answer_text>
<response>$@NULL@$</response>
<answerformat>0</answerformat>
<responseformat>0</responseformat>
<attempts> </attempts>
</answer>
</answers>
<branches> </branches>
</page>
<page id="1002">
<prevpageid>1001</prevpageid>
<nextpageid>0</nextpageid>
<qtype>20</qtype>
<qoption>0</qoption>
<layout>1</layout>
<display>1</display>
<timecreated>1757666163</timecreated>
<timemodified>1757666163</timemodified>
<title>Page 3</title>
<contents>
<p>This is a test lesson page 3</p>
</contents>
<contentsformat>1</contentsformat>
<answers>
<answer id="10021">
<jumpto>-40</jumpto>
<grade>0</grade>
<score>0</score>
<flags>0</flags>
<timecreated>1757666163</timecreated>
<timemodified>1757666163</timemodified>
<answer_text>Previous</answer_text>
<response>$@NULL@$</response>
<answerformat>0</answerformat>
<responseformat>0</responseformat>
<attempts> </attempts>
</answer>
</answers>
<branches> </branches>
</page>
</pages>

It's dynamically generated from the json and from what I can tell when comparing to working backups the answer jumpto is correct for jumping to next/previous pages, the page ID's all match up as expected - I've dynamically generated answer id's from a arbitary base value though - unsure if these potentially are the issue.

Viewing all articles
Browse latest Browse all 6815

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>