<div>Sometimes in quiet moments, or when your mind is distracted by other things, new insights or an answer to a long-standing problem can just bubble up out of your unconscious mind.</div><div><br></div><div>Which is how it was about half an hour after I posted my last comments. Out of know where I realized what you were pointing me towards.</div>
<div><br></div><div>I think I now have the answer to how the Page Wizards and Page Templates / Toolkits can share the same .rlm files. So please ignore my previous posting and read on.</div><div><br></div><div>The xwd Page Wizard files keep their <learningObject> tags so that the wizards continue to work.</div>
<div>The rlm files open with the first few lines shown below</div><div><br></div><div>*************************************************************</div><div><br></div><div> <PG <font color="#3366ff">title="Enter page title"</font> name="quiz"><br>
<SCR name="getPageID"><![CDATA[//pageIcon = icon.parentNode.clip();<br><br>if (extXML == undefined){<br> // Page Wizard<br> pageIcon.templateData = pageIcon.extXML.toObject();<br> pageIcon.templateData = pageIcon.templateData.learningObject[0];<br>
<br>} else {<br> // Toolkits<br> myXML = new XML(extXML.firstChild.childNodes[rootIcon.getPageIndex() - pgOffset]);<br> pageIcon.templateData = myXML.toObject();<br> rootIcon.setTitleText(templateData.learningObject[0].name);<br>
}<br></div><div><br></div><div>***************************************************************</div><div><br></div><div>The title parameter in the PG tag does not affect Page Templates pages but is needed by Page Wizards as the Title has to be defined as a Page Icon property and not in the Wizard.</div>
<div><br></div><div>The name parameter in the Pg tag is set to match the page the .rlm file is for</div><div><br></div><div>extXML is defined in a PageTemplates project ( it is also defined in an Online Toolkits project?) and is undefined in a standard Xerte Project so can be used by the .rlm file to identify what type of project it is being used in.</div>
<div><br></div><div>The two stage definition of pageIcon.templateData</div><div><br></div><div>
pageIcon.templateData = pageIcon.extXML.toObject();<br> pageIcon.templateData = pageIcon.templateData.learningObject[0];
</div><div><br></div><div>effectively allows the Page Wizard .rlm file to use pageIcon.templateData.modelName instead of the current problematic pageIcon.templateData.learningObject[0].modelName throughout the file, giving consistency with PageTemplate .rlm files.</div>
<div><br></div><div>What do you think.</div><div>It works in the limited tests I have run. Can you see any problems I have missed?</div><div><br></div><div>If the above is satisfactory to the Xerte team then can I suggest a possible way forward.</div>
<div><br></div><div>1. Xerte team finalise their latest PageTemplates files and issue a new release of Xerte</div><div>2. I will update the Page Wizards in accordance with any changes in the latest release, plus adding to my model files the code detailed above. This will allow the code to be tested more fully without having any impact on either Online Toolkits or PageTemplates. Any features the Page Wizards have that are additional to those found in Page Templates will be retained.</div>
<div>3. When it is clear that the Page Wizards work with the file modifications detailed above the Xerte team may wish to consider adding a new page to PageTemplates from the Page Wizards e.g. the Inventory page which is loosely based on the quiz page. There is an example of the inventory page in the Page Wizard demonstration project that is down -loadable from the Xerte wiki. In this example you are asked a series of questions and you are then presented with a chart that shows you your learning style preferences Audio, Visual or Kinesthetic. This would allow the testing of a new format model file in Page Templates / Online Toolkits without any risk of compromising existing page templates.</div>
<div><br></div><div>4. Once there is a general acceptance of the modifications required to achieve universal .rlm files a further step could be taken, though this would not be essential. The .rlm files that are used in PageTemplates and Online Toolkits could be modified to this format. At this point in time it would be worth reviewing each page to see if there are any issues that need to be considered. e.g.</div>
<div><br></div><div>a) some of the Page Wizard versions have additional features which may benefit online toolkit users, e.g. a wider range of options in the Title Page; In the next version of Page Wizards all pages that offer narration will support optional autorunning of the narration on page load. Such modifications would be readily apparent once the Page Wizard and Page Template files shared the same coding, and I could provide details of pages that were affected and what the additional features were.</div>
<div><br></div><div>b) In Online Toolkits and Page Templates a page is never used in a framework and cannot be affected by the inclusion of an Entry Frame. However Page Wizards have to function in a situation where there may or may not be an entry Frame and the Page may or may not be used inside a Framework. These factors affect coding in pages that are of a navigational nature e.g. return to start in a Quiz.</div>
<div><br></div><div>5. Whether step 4 is taken or not, the availability in the Page Wizards of a .rlm file structure that could be ported directly into PageTemplates / Online-toolkits would open the way for the conversion of Page Wizards for inclusion in Online-toolkits and the use and promotion of Desktop Xerte and Page Wizards as a developmental platform for Online-Toolkits.</div>
<div><br></div><div>Kind regards</div><div><br></div><div>Johnathan</div><div><br></div><div class="gmail_quote">On 23 April 2011 10:21, Kemp Johnathan <span dir="ltr"><<a href="mailto:johnathan.kemp@ntlworld.com">johnathan.kemp@ntlworld.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div>I am not sure I can relate what you are saying here to a potential solution for achieving a single .rlm file for page wizards and project wide templates.<br>
</div><div><br></div><div>The project wide xwd and xml files that are used in conjunction with an rlt file use learningObject tags.</div>
<div><br></div><div>My recent tests suggest that the biggest issue for Page Wizards is the need to include learningObject tags in the xml and xwd files as they then have to be included in any statements in the .rlm file that access the xml data. However leaving out the learningObject tags causes the xwd file (and the xml file?) to fail to deliver the wizard form correctly in two out of the three Page Wizards tested.</div>
<div><br></div><div>Is the solution likely to lie with some change to the xwd and / or xml file or is the solution likely to lie in a modification to the file that processes the xwd file and xml file in order to display the wizard? If the latter is the case then there is not much I can do to resolve this.</div>
<div><br></div><div>At present I can only produce reliable wizards if I include the learningObject tags with the resulting knock on effect for the .rlm file.</div><div><br></div><div>There was some discussion last year regarding promoting the user development of new templates for On-line toolkits. One thought at the time was that Page Wizards might provide a route to this, particularly if they could share the same models as those used for Project Wide templates. Has there been any further considerations towards facilitating greater template contributions from the wider community?</div>
<div><br></div><div>Kind regards</div><div><br></div><font color="#888888"><div>Johnathan</div></font><div><div class="h5"><div><br></div><div class="gmail_quote">On 22 April 2011 08:21, Julian Tenney <span dir="ltr"><<a href="mailto:Julian.Tenney@nottingham.ac.uk" target="_blank">Julian.Tenney@nottingham.ac.uk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<div style="font-size:13px;color:#000000;direction:ltr;font-family:Tahoma">
<div>something.else and something[0].else are the same, but not exactly the same, if there is one something. THey are arrays. if myArr = ['jules']; then debug (myArray); gives jules, which is myArr[0], but myArr[0] is better, because it addresses the item,
not the array. When things use strings for properties both work.</div>
<div dir="ltr"> </div>
<div style="direction:ltr">
<hr>
<font face="Tahoma" color="#000000" size="2"><b>From:</b> <a href="mailto:xerte-bounces@lists.nottingham.ac.uk" target="_blank">xerte-bounces@lists.nottingham.ac.uk</a> [<a href="mailto:xerte-bounces@lists.nottingham.ac.uk" target="_blank">xerte-bounces@lists.nottingham.ac.uk</a>] On Behalf Of Kemp Johnathan [<a href="mailto:johnathan.kemp@ntlworld.com" target="_blank">johnathan.kemp@ntlworld.com</a>]<br>
<b>Sent:</b> 21 April 2011 17:46<div><div><br>
<b>To:</b> Xerte discussion list<br>
<b>Subject:</b> [Xerte] Re: . Xerte 2.n - Page Wizards (April 2011 release)<br>
</div></div></font><br>
</div><div><div>
<div>
<div>Must be a new usage of the word odious, never used it as an alternative to "helpful" before.<br>
</div>
<div><br>
</div>
<div>Just checked, not so much as a sniff (to keep things in like vein)</div>
<div><br>
</div>
<div>I wondered if it might be something to do with the code that processes the xwd and xml files to generate and populate the wizard.</div>
<div><br>
</div>
<div>Kind regards</div>
<div><br>
</div>
<div>Johnathan</div>
<br>
<div class="gmail_quote">On 21 April 2011 16:37, Dave Burnett <span dir="ltr"><<a href="mailto:d_b_burnett@hotmail.com" target="_blank">d_b_burnett@hotmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="padding-left:1ex;margin:0px 0px 0px 0.8ex;border-left:#ccc 1px solid">
<div><br>
Just being odious.<br>
<br>
Did you do a global search for learningObject after?<br>
<br>
I have found to my chagrin that<br>
something.more and something[0].more<br>
will both work in some cases, but in others you get strange results (array vs array index I guess).<br>
<br>
<br>
Date: Thu, 21 Apr 2011 16:22:51 +0100
<div>
<div><br>
From: <a href="mailto:johnathan.kemp@ntlworld.com" target="_blank">johnathan.kemp@ntlworld.com</a><br>
To: <a href="mailto:xerte@lists.nottingham.ac.uk" target="_blank">xerte@lists.nottingham.ac.uk</a><br>
Subject: [Xerte] Re: . Xerte 2.n - Page Wizards (April 2011 release)<br>
<br>
<div>I have just performed a few tests.<br>
</div>
<div><br>
</div>
<div>I took the following Page Wizards</div>
<div>Summary</div>
<div>Image Viewer</div>
<div>Quiz</div>
<div><br>
</div>
<div>For each one I unzipped the page wizard, edited the .xml file to remove the learning object tags and any leading spaces, edited the .rml file by performing a search and replace on ".learningObject[0]." replacing it with "."</div>
<div><br>
</div>
<div>so that lines such as </div>
<div><br>
</div>
<div>align = pageIcon.templateData.learningObject[0].quiz[0].align;</div>
<div><br>
</div>
<div>became</div>
<div><br>
</div>
<div>align = pageIcon.templateData.quiz[0].align;</div>
<div><br>
</div>
<div>The xwd files were not altered in any way.</div>
<div><br>
</div>
<div>The modified files were then rezipped into Page Wizard .xcp files and the wizards used in a new Xerte project.</div>
<div><br>
</div>
<div>The summary page appeared to work correctly.</div>
<div><br>
</div>
<div>The quiz page wizard failed to perform correctly in that when the quiz item was selected in the left panel, the quiz properties were displayed in the right panel but the link to add a new question was not displayed. When the question option was selected
in the left panel the question properties were displayed in the right panel but only the link to add a new option was displayed, there was no link to add a new question.</div>
<div><br>
</div>
<div>The image viewer wizard failed to display properly - whilst the wizard appears to work correctly, when the wizard is opened spurious entries appear in the left panel as shown in the attached jpg file.</div>
<div><br>
</div>
<div>I have no idea what could be causing these side effects, however they appear to be consistent across each page wizard. That is to say that if I create two quiz pages, they both fail to offer the link to add a new question. If I create additional image
summary pages they each display the same strange entries in the left panel of the wizard.</div>
<div><br>
</div>
<div>Kind regards</div>
<div><br>
</div>
<div>Johnathan</div>
<div><br>
</div>
<br>
<div>On 21 April 2011 15:45, Dave Burnett <span dir="ltr"><<a href="mailto:d_b_burnett@hotmail.com" target="_blank">d_b_burnett@hotmail.com</a>></span> wrote:<br>
<blockquote style="padding-left:1ex;border-left:rgb(204,204,204) 1px solid">
<div><br>
Maybe a <learningObject> tag hiding out in an .rlm or something?<br>
<br>
<br>
<br>
<hr>
Date: Thu, 21 Apr 2011 15:09:33 +0100<br>
From: <a href="mailto:johnathan.kemp@ntlworld.com" target="_blank">johnathan.kemp@ntlworld.com</a><br>
To: <a href="mailto:xerte@lists.nottingham.ac.uk" target="_blank">xerte@lists.nottingham.ac.uk</a>
<div>
<div><br>
Subject: [Xerte] Re: . Xerte 2.n - Page Wizards (April 2011 release)<br>
<br>
<div>We looked at leaving out <learningObject> in the xml in the early days of Page Wizards.<br>
</div>
<div><br>
</div>
<div>I can't remember the details fully but I know it caused problems. I think, though could be wrong on this, that one Page Wizard based page in a project worked fine, but once you had a project with several Page Wizard based pages in it set up without <learningObject>
in the xml then things started to go wrong. There was some conflict taking place.</div>
<div><br>
</div>
<div>Kind regards</div>
<div><br>
</div>
<div>Johnathan </div>
<br>
<div>On 21 April 2011 14:04, Julian Tenney <span dir="ltr"><<a href="mailto:Julian.Tenney@nottingham.ac.uk" target="_blank">Julian.Tenney@nottingham.ac.uk</a>></span> wrote:<br>
<blockquote style="padding-left:1ex">
<div lang="EN-GB">
<div><span style="font-size:11pt;color:rgb(31,73,125)">You don’t have to have <learningObject/> in your xml though. You have separate xml files for each model? Then make the root the page node, not <learningObject></span><br>
<span style="font-size:11pt;color:rgb(31,73,125)"> </span><br>
<span style="font-size:11pt;color:rgb(31,73,125)">Or am I missing something?</span><br>
<span style="font-size:11pt;color:rgb(31,73,125)"> </span><br>
<span style="font-size:11pt;color:rgb(31,73,125)">We are probably due a zip of things. Unless we get any more feedback, we’ll go ahead.</span><br>
<span style="font-size:11pt;color:rgb(31,73,125)"> </span><br>
<span style="font-size:11pt;color:rgb(31,73,125)"> </span><br>
<span style="font-size:11pt;color:rgb(31,73,125)"> </span><br>
<div style="border-right:medium none;padding-right:0cm;border-top:1pt solid;padding-left:0cm;padding-bottom:0cm;border-left:medium none;padding-top:3pt;border-bottom:medium none">
<p style="margin-left:36pt"><b><span lang="EN-US" style="font-size:10pt">From:</span></b><span lang="EN-US" style="font-size:10pt">
<a href="mailto:xerte-bounces@lists.nottingham.ac.uk" target="_blank">xerte-bounces@lists.nottingham.ac.uk</a> [mailto:<a href="mailto:xerte-bounces@lists.nottingham.ac.uk" target="_blank">xerte-bounces@lists.nottingham.ac.uk</a>]
<b>On Behalf Of </b>Kemp Johnathan<br>
<b>Sent:</b> 21 April 2011 14:00</span></p>
<div>
<div><br>
<b>To:</b> Xerte discussion list<br>
<b>Subject:</b> [Xerte] Re: . Xerte 2.n - Page Wizards (April 2011 release)</div>
</div>
</div>
<div>
<div>
<p style="margin-left:36pt"> </p>
<div>
<p style="margin-left:36pt">I am always a bit wary of changes in subversions in that things may be a little volatile, something being modified may then lead to side effects being found and then further changes resulting. Or alternatively one good idea leads
to another and further improvements are made. I prefer to wait until things are stable and then make all the changes that have taken place available in a new release of the Page Wizards.</p>
</div>
<div>
<p style="margin-left:36pt"> </p>
</div>
<div>
<p style="margin-left:36pt">My standard procedure is to take a new release of Xerte when it is made officially available and to create an empty Page Templates based project. I keep a similar project from the previous version and use this as a base line for
comparison. I then compare both project folders using win merge which highlights all the changes for me in each individual file.</p>
</div>
<div>
<p style="margin-left:36pt"> </p>
</div>
<div>
<p style="margin-left:36pt">I can then update the relevant page wizard files one file at a time to implement the changes I see in the latest Xerte release. The biggest problem is likely to occur when a significant change to the .rlt file is made as this will
reflect code that many different page templates may call upon. This is why thus far I have limited the Page Wizards to the Page Templates and not extended them to cover any of the other project wide templates.</p>
</div>
<div>
<p style="margin-left:36pt"> </p>
</div>
<div>
<p style="margin-left:36pt">What I find difficult sometimes is to identify when a new release has taken place as sometimes the last update date on the Xerte web site may not be updated, or version numbers displayed in the version information may not be up
to date.</p>
</div>
<div>
<p style="margin-left:36pt"> </p>
</div>
<div>
<p style="margin-left:36pt">I have read in the mailing list of a forthcoming release of Xerte On-line toolkits and am bracing myself now for a new release of desktop Xerte, in anticipation that it may create a fair bit of maintenance for the page wizards.</p>
</div>
<div>
<p style="margin-left:36pt"> </p>
</div>
<div>
<p style="margin-left:36pt">I recall a while back there being some discussion regarding looking into how the PageTemplates project wide template and the Page Wizards could share the same set of files, this would significantly reduce the maintenance burden
of the Page Wizards. The sample code below shows the key issues in achieving this.</p>
</div>
<div>
<p style="margin-left:36pt"> </p>
</div>
<div>
<p style="margin-left:36pt">// code from getPageId from a typical page wizard</p>
</div>
<div>
<p style="margin-left:36pt"> </p>
</div>
<div>
<p style="margin-bottom:12pt;margin-left:36pt;margin-right:0cm">pageIcon = icon.parentNode.clip();<br>
<span style="color:rgb(51,102,255)">//myXML = new XML(extXML.firstChild.childNodes[rootIcon.getPageIndex() - pgOffset]);<br>
//pageIcon.templateData = myXML.toObject();</span><br>
<span style="color:red">pageIcon.templateData = pageIcon.extXML.toObject();</span><br>
<br>
<span style="color:rgb(51,102,255)">//rootIcon.setTitleText(templateData.learningObject[0].name);</span><br>
<br>
if (pageIcon.templateData<span style="color:red">.learningObject[0]</span>.dragDropLabel[0].narration != undefined){<br>
narration = pageIcon.templateData<span style="color:red">.learningObject[0]</span>.dragDropLabel[0].narration;<br>
rootIcon.broadcast('showAudio');<br>
nar.play();<br>
}</p>
</div>
<div>
<p style="margin-left:36pt">The blue code is needed for PageTemplates use and the red for Page Wizards use</p>
</div>
<div>
<p style="margin-left:36pt"> </p>
</div>
<div>
<p style="margin-left:36pt">I would have thought it might be possible to cover everything except for the inclusion of ".learningObject[0]" insertions by some kind of project wide flag and an if else block that tested the flag condition.</p>
</div>
<div>
<p style="margin-left:36pt"> </p>
</div>
<div>
<p style="margin-left:36pt">Is there any way that pageIcon.templateData could be defined for Page Wizards so that it included the ".learningObject[0]" so that it does not need to be referenced every time a call to external xml data is made? If so this could
then be included in the above mentioned if else block and the rest of the code could stand unchanged.</p>
</div>
<div>
<p style="margin-left:36pt"> </p>
</div>
<div>
<p style="margin-left:36pt">Kind regards</p>
</div>
<div>
<p style="margin-left:36pt"> </p>
</div>
<div>
<p style="margin-left:36pt">Johnathan</p>
</div>
<div>
<p style="margin-left:36pt"> </p>
</div>
<div>
<p style="margin-left:36pt"> </p>
</div>
<p style="margin-left:36pt"> </p>
<div>
<p style="margin-left:36pt">On 21 April 2011 11:35, Julian Tenney <<a href="mailto:Julian.Tenney@nottingham.ac.uk" target="_blank">Julian.Tenney@nottingham.ac.uk</a>> wrote:</p>
<div>
<div>
<p style="margin-left:36pt"><span style="font-size:11pt;color:rgb(31,73,125)">Do you watch the subversion rss feeds?</span></p>
<p style="margin-left:36pt"> </p>
<p style="margin-left:36pt"><span style="font-size:11pt;color:rgb(31,73,125)"><a href="http://code.google.com/feeds/p/xerte/updates/basic" target="_blank">http://code.google.com/feeds/p/xerte/updates/basic</a></span></p>
<p style="margin-left:36pt"> </p>
<p style="margin-left:36pt"><span style="font-size:11pt;color:rgb(31,73,125)">That’s probably the best way of being kept in the loop of changes. I try and comment them. If there is no comment it’s usually a smaller bug fix rather than a change. If you
keep your svn synched up you’ll see the files that have changed on each update. If it looks like something you ought to be aware of, and can’t see what’s changed then send me a mail.</span></p>
<p style="margin-left:36pt"> </p>
<div style="border-right:medium none;padding-right:0cm;border-top:1pt solid;padding-left:0cm;padding-bottom:0cm;border-left:medium none;padding-top:3pt;border-bottom:medium none">
<p style="margin-left:72pt"><b><span lang="EN-US" style="font-size:10pt">From:</span></b><span lang="EN-US" style="font-size:10pt">
<a href="mailto:xerte-bounces@lists.nottingham.ac.uk" target="_blank">xerte-bounces@lists.nottingham.ac.uk</a> [mailto:<a href="mailto:xerte-bounces@lists.nottingham.ac.uk" target="_blank">xerte-bounces@lists.nottingham.ac.uk</a>]
<b>On Behalf Of </b>Kemp Johnathan<br>
<b>Sent:</b> 21 April 2011 11:32<br>
<b>To:</b> Xerte discussion list<br>
<b>Subject:</b> [Xerte] Re: . Xerte 2.n - Page Wizards (April 2011 release)</span></p>
</div>
<div>
<div>
<p style="margin-left:72pt"> </p>
<div>
<p style="margin-left:72pt">Hello Deborah,</p>
</div>
<div>
<p style="margin-left:72pt"> </p>
</div>
<div>
<p style="margin-left:72pt">Thanks for the idea of adding the optional automatic narration parameter, I will aim to add it to all the page wizards that use narration in the next release.</p>
</div>
<div>
<p style="margin-left:72pt"> </p>
</div>
<div>
<p style="margin-left:72pt">I remember some discussion on the mail list that suggested that there may be some changes to the code that is used to implement narration, but as yet the current version of Xerte still uses the same code. Hence I have made no changes
to narrationHandler.rlm. Should there be any changes to how the PageTemplates project wide template delivers narration in a future release then there may be an update to narrationHandler.rlm.</p>
</div>
<div>
<p style="margin-left:72pt"> </p>
</div>
<div>
<p style="margin-left:72pt">New Page Wizards cannot update existing pages in Xerte projects, as a Page Wizard is only used as a source of information by Xerte from which to create a new page, so existing pages are unaffected by an update to the Page Wizards.</p>
</div>
<div>
<p style="margin-left:72pt"> </p>
</div>
<div>
<div>
<p style="margin-left:72pt">The changes to a Page Wizard that provide support for optional automatic narration are all within the code of the page wizard (an extra line in the xwd file to implement the optional parameter and a small change to the getPageId
code block that adds an extra "if" condition to the section that implements narration) so no change to the narrationHandler is required.</p>
</div>
<div>
<p style="margin-left:72pt"> </p>
</div>
<div>
<p style="margin-left:72pt"><b>Adding auto Narration to any existing page that offers narration</b></p>
</div>
</div>
<div>
<p style="margin-left:72pt">If you wanted to add auto Narration to an existing page in one of your projects then this would be a simple 2 step process</p>
</div>
<div>
<p style="margin-left:72pt"> </p>
</div>
<div>
<p style="margin-left:72pt">Step 1 - add the optional parameter "narPlayback" to the xwd file. Simply open the xwd file in your favourite editor (not a word processor) - I use FlashDevelop and insert the line below, after the narration optional parameter,
then save your change.</p>
</div>
<div>
<p style="margin-left:72pt"> </p>
</div>
<div>
<div>
<p style="margin-bottom:12pt;margin-left:72pt"><span style="color:rgb(51,102,255)"><narPlayback type="ComboBox" label="Narration Playback" options="On user request,On page load" data="userRequest,pageLoad" defaultValue="On user request" width="150" optional="true"/></span></p>
</div>
<div>
<p style="margin-left:72pt">Step 2 - add an additional "if" block to the narration code in getPageId. Do this in Xerte by expanding the page structure and selecting the getPageId script icon.</p>
</div>
<div>
<p style="margin-left:72pt"> </p>
</div>
<div>
<p style="margin-left:72pt">// Old page version - no auto narration option</p>
</div>
<div>
<p style="margin-left:72pt"> </p>
</div>
<div>
<p style="margin-left:72pt">if (pageIcon.templateData.learningObject[0].modelAnswer[0].narration != undefined){<br>
narration = pageIcon.templateData.learningObject[0].modelAnswer[0].narration;<br>
rootIcon.broadcast('showAudio');<br>
}</p>
</div>
<div>
<p style="margin-left:72pt"> </p>
</div>
<div>
<p style="margin-left:72pt">// sample version from new version of gapFill Page Wizard</p>
</div>
<div>
<p style="margin-left:72pt"> </p>
</div>
<div>
<p style="margin-left:72pt">if (pageIcon.templateData.learningObject[0].gapFill[0].narration != undefined){<br>
narration = pageIcon.templateData.learningObject[0].gapFill[0].narration;<br>
rootIcon.broadcast('showAudio');<br>
<br>
<span style="color:rgb(51,102,255)"> if (pageIcon.templateData.learningObject[0].gapFill[0].narPlayback != undefined && pageIcon.templateData.learningObject[0].gapFill[0].narPlayback == "pageLoad"){<br>
nar.play();<br>
}</span><br>
<br>
}</p>
</div>
<div>
<p style="margin-left:72pt"> </p>
</div>
<div>
<p style="margin-left:72pt">The bit shown in blue above could be added to any page wizard that offers narration, you would just need to edit the references to the page wizard name to match the current page wizard, e.g. for modelAnswer code shown earlier would
become</p>
</div>
<div>
<p style="margin-left:72pt"> </p>
</div>
<div>
<p style="margin-left:72pt">if (pageIcon.templateData.learningObject[0].modelAnswer[0].narration != undefined){<br>
narration = pageIcon.templateData.learningObject[0].modelAnswer[0].narration;<br>
rootIcon.broadcast('showAudio');</p>
</div>
<div>
<p style="margin-left:72pt"> </p>
</div>
<div>
<p style="margin-left:72pt"><span style="color:rgb(51,102,255)"> if (pageIcon.templateData.learningObject[0].</span> modelAnswer
<span style="color:rgb(51,102,255)">[0].narPlayback != undefined && pageIcon.templateData.learningObject[0].</span> modelAnswer
<span style="color:rgb(51,102,255)">[0].narPlayback == "pageLoad"){<br>
nar.play();<br>
}</span> </p>
</div>
<div>
<p style="margin-left:72pt"><br>
}</p>
</div>
</div>
<div>
<p style="margin-left:72pt">That should give your page auto narration option capability. Note the first two lines shown above are actually all one long line.</p>
</div>
<div>
<p style="margin-left:72pt"> </p>
</div>
<div>
<p style="margin-left:72pt"><b>Updating an existing page to use the new version of a Page Wizard</b></p>
</div>
<div>
<p style="margin-left:72pt"> </p>
</div>
<div>
<p style="margin-left:72pt">If you wanted to update a learning object to take advantage of new features in a Page wizard then you could try the following.</p>
</div>
<div>
<p style="margin-left:72pt"> </p>
</div>
<div>
<p style="margin-left:72pt">Given an existing page called currentPage with its files saved in folder pages / currentPage</p>
</div>
<div>
<p style="margin-left:72pt"> </p>
</div>
<div>
<p style="margin-left:72pt">1 . Create a new page using the new version of the Page Wizard saving its files to pages / newPage</p>
</div>
<div>
<p style="margin-left:72pt"> </p>
</div>
<div>
<p style="margin-left:72pt">this would give you a folder pages / newPage containing the Page Wizard's .xml, .xwd and .rlm files</p>
</div>
<div>
<p style="margin-left:72pt"> </p>
</div>
<div>
<p style="margin-left:72pt">2. Rename the .xml file to something like orig.xml</p>
</div>
<div>
<p style="margin-left:72pt"> </p>
</div>
<div>
<p style="margin-left:72pt">3. Copy the .xml file from pages / currentPage to pages / newPage</p>
</div>
<div>
<p style="margin-left:72pt"> </p>
</div>
<div>
<p style="margin-left:72pt">This should give you a new copy of your original page that uses the new code for the page, has the new xwd file but benefits from all the settings of your original page.</p>
</div>
<div>
<p style="margin-left:72pt"> </p>
</div>
<div>
<p style="margin-left:72pt">But a word of warning. This should work in most instances of new page wizards, one thing could cause a problem.</p>
</div>
<div>
<p style="margin-left:72pt"> </p>
</div>
<div>
<p style="margin-left:72pt">If the new Version of the page wizard includes any new parameters that are NOT optional. </p>
</div>
<div>
<p style="margin-left:72pt"> </p>
</div>
<div>
<p style="margin-left:72pt">If the new version of the Page Wizard includes a non-optional parameter that did not exist in the previous version then the wizard may malfunction. To resolve the malfunction look in the original xml file (renamed to orig.xml above
and identify the missing parameters. These will need to be copied into the active xml file i.e the copy from your original page.</p>
</div>
<div>
<p style="margin-left:72pt"> </p>
</div>
<div>
<p style="margin-left:72pt">Whether it is worth updating a page will probably depend on the changes that the new wizard introduces.</p>
</div>
<div>
<p style="margin-left:72pt"> </p>
</div>
<div>
<p style="margin-left:72pt">Hope this helps to answer your questions.</p>
</div>
<div>
<p style="margin-left:72pt"> </p>
</div>
<div>
<p style="margin-left:72pt">Kind regards</p>
</div>
<div>
<p style="margin-left:72pt"> </p>
</div>
<div>
<p style="margin-left:72pt">Johnathan</p>
</div>
<div>
<p style="margin-left:72pt"> </p>
</div>
<div>
<p style="margin-left:72pt">PS. Don't worry about asking silly questions - just ask for clarification if my answers are not adequate to meet your needs.</p>
</div>
<div>
<p style="margin-left:72pt"> </p>
</div>
<div>
<p style="margin-left:72pt"> </p>
</div>
<div>
<p style="margin-left:72pt"> </p>
</div>
<p style="margin-left:72pt"> </p>
<div>
<p style="margin-left:72pt">On 20 April 2011 11:20, Deborah Delin <<a href="mailto:admin@strivney.com" target="_blank">admin@strivney.com</a>> wrote:</p>
<div>
<p style="margin-left:72pt"><span style="color:rgb(0,0,102)">Hi Jonathan,</span></p>
<div>
<p style="margin-left:72pt"> </p>
</div>
<div>
<p style="margin-left:72pt"><span style="color:rgb(0,0,102)">Thanks very much for the new Page Wizards release. Great to have an optional parameter to specify automatic narration!</span></p>
</div>
<div>
<p style="margin-left:72pt"> </p>
</div>
<div>
<p style="margin-left:72pt"><span style="color:rgb(0,0,102)">Sorry if this is a silly question: I have downloaded the new release and replaced the files in my Xerte folder, but, in order for existing learning objects to be affected by the changes in the
new release, do I have to re-create the learning objects from scratch? The release didn't contain a new narration handler - wouldn't I need to add an updated narration handler to the rlo? </span></p>
</div>
<div>
<p style="margin-left:72pt"> </p>
</div>
<div>
<p style="margin-left:72pt"><span style="color:rgb(0,0,102)">Thanks in advance for your reply. <br clear="all">
</span><br>
-- </p>
<div>
<p style="margin-left:72pt"><span style="color:rgb(51,51,153)">Deborah
<br>
</span></p>
</div>
<p style="margin-left:72pt"> </p>
</div>
</div>
<p style="margin-left:72pt"> </p>
<p style="margin-left:72pt">This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use,
copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.
</p>
<p style="margin-left:72pt">This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system: you are advised to perform your own checks. Email communications with the University
of Nottingham may be monitored as permitted by UK legislation. </p>
<p style="margin-bottom:12pt;margin-left:72pt"><br>
_______________________________________________<br>
Xerte mailing list<br>
<a href="mailto:Xerte@lists.nottingham.ac.uk" target="_blank">Xerte@lists.nottingham.ac.uk</a><br>
<a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte" target="_blank">http://lists.nottingham.ac.uk/mailman/listinfo/xerte</a><br>
<br>
This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information
contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.<br>
<br>
This message has been checked for viruses but the contents of an attachment<br>
may still contain software viruses which could damage your computer system:<br>
you are advised to perform your own checks. Email communications with the<br>
University of Nottingham may be monitored as permitted by UK legislation.</p>
</div>
<p style="margin-left:72pt"> </p>
</div>
</div>
</div>
<div>
<div>
<p style="margin-left:36pt"> </p>
<p style="margin-left:36pt">This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use,
copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.
</p>
<p style="margin-left:36pt">This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system: you are advised to perform your own checks. Email communications with the University
of Nottingham may be monitored as permitted by UK legislation. </p>
</div>
</div>
</div>
<p style="margin-bottom:12pt;margin-left:36pt;margin-right:0cm"><br>
_______________________________________________<br>
Xerte mailing list<br>
<a href="mailto:Xerte@lists.nottingham.ac.uk" target="_blank">Xerte@lists.nottingham.ac.uk</a><br>
<a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte" target="_blank">http://lists.nottingham.ac.uk/mailman/listinfo/xerte</a><br>
<br>
This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information
contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.<br>
<br>
This message has been checked for viruses but the contents of an attachment<br>
may still contain software viruses which could damage your computer system:<br>
you are advised to perform your own checks. Email communications with the<br>
University of Nottingham may be monitored as permitted by UK legislation.<br>
<br>
</p>
</div>
<p style="margin-left:36pt"> </p>
</div>
</div>
</div>
</div>
<br>
_______________________________________________<br>
Xerte mailing list<br>
<a href="mailto:Xerte@lists.nottingham.ac.uk" target="_blank">Xerte@lists.nottingham.ac.uk</a><br>
<a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte" target="_blank">http://lists.nottingham.ac.uk/mailman/listinfo/xerte</a><br>
<br>
This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information
contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.<br>
<br>
This message has been checked for viruses but the contents of an attachment<br>
may still contain software viruses which could damage your computer system:<br>
you are advised to perform your own checks. Email communications with the<br>
University of Nottingham may be monitored as permitted by UK legislation.<br>
<br>
<br>
</blockquote>
</div>
<br>
<br>
</div>
</div>
_______________________________________________ Xerte mailing list <a href="mailto:Xerte@lists.nottingham.ac.uk" target="_blank">
Xerte@lists.nottingham.ac.uk</a> <a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte" target="_blank">
http://lists.nottingham.ac.uk/mailman/listinfo/xerte</a> This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete
it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham. This message has been
checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system: you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted
by UK legislation. </div>
<br>
_______________________________________________<br>
Xerte mailing list<br>
<a href="mailto:Xerte@lists.nottingham.ac.uk" target="_blank">Xerte@lists.nottingham.ac.uk</a><br>
<a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte" target="_blank">http://lists.nottingham.ac.uk/mailman/listinfo/xerte</a><br>
<br>
This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information
contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.<br>
<br>
This message has been checked for viruses but the contents of an attachment<br>
may still contain software viruses which could damage your computer system:<br>
you are advised to perform your own checks. Email communications with the<br>
University of Nottingham may be monitored as permitted by UK legislation.<br>
<br>
<br>
</blockquote>
</div>
<br>
<br>
</div>
</div>
_______________________________________________ Xerte mailing list <a href="mailto:Xerte@lists.nottingham.ac.uk" target="_blank">
Xerte@lists.nottingham.ac.uk</a> <a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte" target="_blank">
http://lists.nottingham.ac.uk/mailman/listinfo/xerte</a> This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete
it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham. This message has been
checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system: you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted
by UK legislation. </div>
<br>
_______________________________________________<br>
Xerte mailing list<br>
<a href="mailto:Xerte@lists.nottingham.ac.uk" target="_blank">Xerte@lists.nottingham.ac.uk</a><br>
<a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte" target="_blank">http://lists.nottingham.ac.uk/mailman/listinfo/xerte</a><br>
<br>
This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information
contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.<br>
<br>
This message has been checked for viruses but the contents of an attachment<br>
may still contain software viruses which could damage your computer system:<br>
you are advised to perform your own checks. Email communications with the<br>
University of Nottingham may be monitored as permitted by UK legislation.<br>
<br>
<br>
</blockquote>
</div>
<br>
</div>
</div></div></div>
</div>
<br>_______________________________________________<br>
Xerte mailing list<br>
<a href="mailto:Xerte@lists.nottingham.ac.uk" target="_blank">Xerte@lists.nottingham.ac.uk</a><br>
<a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte" target="_blank">http://lists.nottingham.ac.uk/mailman/listinfo/xerte</a><br>
<br>
This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.<br>
<br>
This message has been checked for viruses but the contents of an attachment<br>
may still contain software viruses which could damage your computer system:<br>
you are advised to perform your own checks. Email communications with the<br>
University of Nottingham may be monitored as permitted by UK legislation.<br>
<br>
<br></blockquote></div><br>
</div></div></blockquote></div><br>