Quick note for anyone else out there having the problem that's been discussed in this thread - <br><br>It seems that if you replace "<b>templatePath</b>" with "<b>FileLocation</b>" in any wizard rlm file, this solves the problem. A page built from the updated wizard then works both on its own and run inside our wrapper.<br>
<br>I thought we had tried this solution, but it is possible I used "<b>fileLocation</b>" instead of "<b>FileLocation</b>" early in the process with no luck and never noticed the mistake. <br><br>DUH<br>
<br>Is there a reason that the desktop page wizards use templatePath, or is it just a leftover from XOT?<br><br>Thanks!<br>ma<br>
<br><div class="gmail_quote">
On Tue, Nov 9, 2010 at 10:41 AM, 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: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div link="blue" vlink="purple" lang="EN-GB">
<div>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">That’s right, but you ought to be able to see how fileLocation
is being passed in, so do the same thing.</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<div>
<div style="border-width: 1pt medium medium; border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; padding: 3pt 0cm 0cm;">
<p class="MsoNormal" style="margin-left: 36pt;"><b><span style="font-size: 10pt;" lang="EN-US">From:</span></b><span style="font-size: 10pt;" lang="EN-US">
<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>Dave Burnett<br>
<b>Sent:</b> 09 November 2010 15:04<div><div></div><div><br>
<b>To:</b> Xerte list<br>
<b>Subject:</b> RE: [Xerte] templatePath problem in Page Templates with Desktop
Xerte 2</div></div></span></p>
</div>
</div><div><div></div><div>
<p class="MsoNormal" style="margin-left: 36pt;"> </p>
<p class="MsoNormal" style="margin-right: 0cm; margin-bottom: 12pt; margin-left: 36pt;"><span style="font-size: 10pt;"><br>
<br>
Don't know how your wrapper works, but I'm guessing you'll have to get that var
into the wrapper and pass it down to the embedded .rlo swf<br>
<br>
</span></p>
<div class="MsoNormal" style="margin-left: 36pt; text-align: center;" align="center"><span style="font-size: 10pt;">
<hr align="center" width="100%" size="2">
</span></div>
<p class="MsoNormal" style="margin-right: 0cm; margin-bottom: 12pt; margin-left: 36pt;"><span style="font-size: 10pt;">From:
<a href="mailto:maryann@moberg.com" target="_blank">maryann@moberg.com</a><br>
Date: Tue, 9 Nov 2010 08:19:41 -0500<br>
Subject: Re: [Xerte] templatePath problem in Page Templates with Desktop Xerte
2<br>
To: <a href="mailto:xerte@lists.nottingham.ac.uk" target="_blank">xerte@lists.nottingham.ac.uk</a><br>
<br>
Thanks, Dave & Julian, we'll play around and see what happens.<br>
<br>
ma</span></p>
<div>
<p class="MsoNormal" style="margin-left: 36pt;"><span style="font-size: 10pt;">On Tue, Nov 9, 2010 at 5:54 AM, Julian
Tenney <<a href="mailto:Julian.Tenney@nottingham.ac.uk" target="_blank">Julian.Tenney@nottingham.ac.uk</a>>
wrote:</span></p>
<div>
<div>
<p class="MsoNormal" style="margin-left: 36pt;"><span style="font-size: 11pt; color: rgb(31, 73, 125);">Right at the top of the engine
code is this:</span><span style="font-size: 10pt;"></span></p>
<p class="MsoNormal" style="margin-left: 36pt;"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span><span style="font-size: 10pt;"></span></p>
<p class="MsoNormal" style="margin-left: 36pt;"><span style="font-size: 11pt; color: rgb(31, 73, 125);">var FileLocation =
_level0.FileLocation;</span><span style="font-size: 10pt;"></span></p>
<p class="MsoNormal" style="margin-left: 36pt;"><span style="font-size: 11pt; color: rgb(31, 73, 125);">var templatePath =
_level0.templatePath;</span><span style="font-size: 10pt;"></span></p>
<p class="MsoNormal" style="margin-left: 36pt;"><span style="font-size: 11pt; color: rgb(31, 73, 125);">if (templatePath ==
undefined){</span><span style="font-size: 10pt;"></span></p>
<p class="MsoNormal" style="margin-left: 36pt;"><span style="font-size: 11pt; color: rgb(31, 73, 125);">
templatePath = FileLocation;</span><span style="font-size: 10pt;"></span></p>
<p class="MsoNormal" style="margin-left: 36pt;"><span style="font-size: 11pt; color: rgb(31, 73, 125);">}</span><span style="font-size: 10pt;"></span></p>
<p class="MsoNormal" style="margin-left: 36pt;"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span><span style="font-size: 10pt;"></span></p>
<p class="MsoNormal" style="margin-left: 36pt;"><span style="font-size: 11pt; color: rgb(31, 73, 125);">i.e. if templatePath is passed
in from the html page (as below), it uses that path, otherwise it should be the
same path as fileLocation.</span><span style="font-size: 10pt;"></span></p>
<p class="MsoNormal" style="margin-left: 36pt;"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span><span style="font-size: 10pt;"></span></p>
<p class="MsoNormal" style="margin-left: 36pt;"><span style="font-size: 11pt; color: rgb(31, 73, 125);">Try assigning a flashvar
templatePath in your javascript and passing it into the movie.</span><span style="font-size: 10pt;"></span></p>
<p class="MsoNormal" style="margin-left: 36pt;"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span><span style="font-size: 10pt;"></span></p>
<div>
<div style="border-width: 1pt medium medium; border-style: solid none none; padding: 3pt 0cm 0cm; border-color: -moz-use-text-color;">
<p class="MsoNormal" style="margin-left: 72pt;"><b><span style="font-size: 10pt;" lang="EN-US">From:</span></b><span style="font-size: 10pt;" lang="EN-US"> <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>Dave Burnett<br>
<b>Sent:</b> 08 November 2010 22:11<br>
<b>To:</b> Xerte list<br>
<b>Subject:</b> RE: [Xerte] templatePath problem in Page Templates with Desktop
Xerte 2</span><span style="font-size: 10pt;"></span></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal" style="margin-left: 72pt;"><span style="font-size: 10pt;"> </span></p>
<p class="MsoNormal" style="margin-right: 0cm; margin-bottom: 12pt; margin-left: 72pt;"><span style="font-size: 10pt;"><br>
This is all highly un-researched, just indirect references I found in the
archives:<br>
<br>
<br>
"You need to distinquish between template path and FileLocation when
running in toolkits, as the two locations are different. <br>
FileLocation is the folder where the xml file is; templatePath is the folder
where the rlt is. <br>
Locally, the two are the same."<br>
<br>
I did a search in a local copy of XOT and found this in rloObject.js:<br>
<br>
var templatePath = rloFile.substr(0, rloFile.lastIndexOf('/') + 1);<br>
================<br>
<br>
I'm guessing .rloFile refers to the domain path to the .rlo on the server.<br>
<br>
So my shot in the dark is you have to make sure templatePath is pointing to the
folder where your .rlt is located (not the .rlo), as it looks like it defaults
to above).<br>
<br>
<br>
Dave<br>
<br>
<br>
</span></p>
<div style="margin-left: 36pt;">
<div class="MsoNormal" style="margin-left: 36pt; text-align: center;" align="center"><span style="font-size: 10pt;">
<hr align="center" width="100%" size="2">
</span></div>
</div>
<p class="MsoNormal" style="margin-left: 72pt;"><span style="font-size: 10pt;">From: <a href="mailto:maryann@moberg.com" target="_blank">maryann@moberg.com</a><br>
Date: Mon, 8 Nov 2010 16:36:10 -0500<br>
To: <a href="mailto:xerte@lists.nottingham.ac.uk" target="_blank">xerte@lists.nottingham.ac.uk</a><br>
Subject: [Xerte] templatePath problem in Page Templates with Desktop Xerte 2<br>
<br>
We've been using the page wizards to create learning objects that we then load
into a flash wrapper application that creates a menu of them so that the user
can select them as desired. <br>
<br>
Everything works fine with the wizard created pages when run directly in the
browser. <br>
<br>
All xerte pages that are created by hand rather than by page templates work
fine when run in our wrapper and also when published and run on their own in a
browser. <br>
<br>
The problem comes when we run an rlo file containing wizard-created pages from
our flash wrapper - it can't seem to resolve "templatePath" in order
to find the panel.swf that I reference. <br>
<br>
We can't find where templatePath is being assigned. Looked around on the
wiki page the source for xerte.swf but couldn't find it.<br>
<br>
<br>
Here's the line from the one of the page template rlm files:<br>
<span style="color: rgb(51, 51, 255);"> <DIS
tabIndex="-1" id="panel" name="panel"
x="-300" y="20" type="ext" url="templatePath
+ 'common/whitePanel.swf'"><![CDATA[]]></DIS><br>
</span><br>
<br>
Tried substituting "fileLocation" for it but that didn't work. <br>
<br>
<br>
What did work is just removing "templatePath" from the url like
this:<br>
<span style="color: rgb(51, 51, 255);"> <DIS
tabIndex="-1" id="panel" name="panel"
x="-300" y="20" type="ext"
url="'common/whitePanel.swf'"><![CDATA[]]></DIS><br>
</span><br>
<br>
Here's how we're loading the rlo file in our flash wrapper:<br>
<span style="color: rgb(51, 51, 255);">
this._parent.attachMovie('Xerte', 'myRLO', 0).init('DABB.rlo', 230, 80, 1020,
640);</span><br>
<br>
<br>
In short, we've figured out a way to edit the rlo files so that they work in
our wrapper but then they don't work outside of it. <br>
<br>
Hoping there's a way to get the same file to work in both situations.<br>
<br>
Thanks!!<br>
ma<br>
<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>
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. <br>
<br>
_______________________________________________ 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. </span></p>
</div>
</div>
</div>
</div>
<p class="MsoNormal" style="margin-right: 0cm; margin-bottom: 12pt; margin-left: 36pt;"><span style="font-size: 10pt;"><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>
</span></p>
</div>
<p class="MsoNormal" style="margin-left: 36pt;"><span style="font-size: 10pt;"><br>
<br>
_______________________________________________ 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. </span></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>