[Xerte] Re: importing models into xertes toolkit...

Julian Tenney Julian.Tenney at nottingham.ac.uk
Mon Jul 30 13:39:30 BST 2012

I always do it this way:

- Modify the .xwd to know about the model. There are two things to do:

1)      The part in <learningObject><newNodes> that defines the payload you want inserting into the LO, i.e.

<text><![CDATA[<text name="Enter Page Title">Enter text for the page here</text>]]></text>

2)      the information that defines the form for that model. Each moel has it's own section, i.e.

<!--TEXT PAGE------------------------------------------------------->
  <text type="text" label="Page Text" height="380" menu="Text" menuItem="Plain Text" icon="icPageWhiteText" remove="true" thumb="thumbs/plaintext.jpg" hint="A plain and simple text page.">

    <name type="TextInput" label="Page Title"/>

    <textWidth type="comboBox" label="Text Width" options="Small,Medium,Large,Full" data="300,450,600,760" defaultValue="300" width="100" optional="true"/>

    <subSuper type="CheckBox" label="Superscript Support" optional= "true" default="false"/>

    <narrationNavigate type="CheckBox" label="Navigate on narration" optional="true"/>
    <playNarration type="CheckBox" label="Auto-play narration" optional="true"/>
    <narration type="media" label="Narration" optional="true"/>


Then you can insert it from the insert menu, and the text model is added to the learningobejct in the right place.

Then develop your model so you are getting the data from the wizard, start simply.

Then as you develop the logic, you can develop the wizard to provide the right information.

What does your model do?

From: xerte-bounces at lists.nottingham.ac.uk [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Cowell, Elizabeth
Sent: 30 July 2012 13:03
To: Xerte discussion list
Subject: [Xerte] importing models into xertes toolkit...


I've developed a multipage questionnaire, and have saved it as a model. I can import it using  the "insert model" option, but I want to be able to insert it like the other models, when you run the online toolkits template wizard - ie where it says +Insert, I want my model to appear and be usable.

I saw the template.xwd referred to the models for insert , and managed to hack mine in place of the quiz one, but it doesn't really work. I can see I somehow have to put the definitions from the initial xml/xwd files into the template.xwd/xml or ensure it's in the rlm but I don't really know where.. On peeking into the other rlms it appears the other models have additional startup scripting which determines where they are being called from, which is not explained anywhere that I can find.

Is there any in-depth guidance on this, or how you integrate anything you build into the toolkit so that it can be used easily by other people in my team? I want them to be able to use xertes and add either the standard things like quizzes etc or add my model??

Also, I cannot find out what the file Templates options does. It creates a template, but an xtp rather than an rlt ? not sure what the difference is?.

I feel like I have missed out on some documentation somewhere? Any help / direction much appreciated, as it seems like a big leap from simply running through the startup guide on a quiz to getting a fuller integrated solution which adds the models we want to xertes...  I can do action script and programming etc, but feel like I am having to work backwards from the examples given to work out how to do things and I am not sure I am getting it right..

Any help much much appreciated, seem to have spent a while on this and am on verge of giving up now.

Liz Cowell
Learning and Skills Librarian
Learning & Information Services
University of Wolverhampton
Tel: 01902 322385
Email: E.Cowell at wlv.ac.uk<mailto:E.Cowell at wlv.ac.uk>

Scanned by iCritical.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20120730/a64bfdfe/attachment.html>

More information about the Xerte mailing list