Thanks, Dave &amp; Julian, we&#39;ll play around and see what happens.<br><br>ma<br><br><div class="gmail_quote">On Tue, Nov 9, 2010 at 5:54 AM, Julian Tenney <span dir="ltr">&lt;<a href="mailto:Julian.Tenney@nottingham.ac.uk">Julian.Tenney@nottingham.ac.uk</a>&gt;</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);">Right at the top of the engine code is this:</span></p>

<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>

<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">var FileLocation = _level0.FileLocation;</span></p>

<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">var templatePath = _level0.templatePath;</span></p>

<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">if (templatePath == undefined){</span></p>

<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">                templatePath = FileLocation;</span></p>

<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">}</span></p>

<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>

<p class="MsoNormal"><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></p>

<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>

<p class="MsoNormal"><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></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> 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></p>

</div>

</div><div><div></div><div class="h5">

<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>
This is all highly un-researched, just indirect references I found in the
archives:<br>
<br>
<br>
&quot;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.&quot;<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(&#39;/&#39;) + 1);<br>
================<br>
<br>
I&#39;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>
<br>
</span></p>

<div class="MsoNormal" style="margin-left: 36pt; text-align: center;" align="center"><span style="font-size: 10pt;">

<hr size="2" align="center" width="100%">

</span></div>

<p class="MsoNormal" style="margin-left: 36pt;"><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&#39;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&#39;t seem to resolve &quot;templatePath&quot; in order
to find the panel.swf that I reference. <br>
<br>
We can&#39;t find where templatePath is being assigned.  Looked around on the
wiki page the source for xerte.swf but couldn&#39;t find it.<br>
<br>
 <br>
Here&#39;s the line from the one of the page template rlm files:<br>
<span style="color: rgb(51, 51, 255);">        &lt;DIS
tabIndex=&quot;-1&quot; id=&quot;panel&quot; name=&quot;panel&quot;
x=&quot;-300&quot; y=&quot;20&quot; type=&quot;ext&quot; url=&quot;templatePath
+ &#39;common/whitePanel.swf&#39;&quot;&gt;&lt;![CDATA[]]&gt;&lt;/DIS&gt;<br>
</span><br>
<br>
Tried substituting &quot;fileLocation&quot; for it but that didn&#39;t work.  <br>
<br>
<br>
What did work is just removing &quot;templatePath&quot;  from the url like
this:<br>
<span style="color: rgb(51, 51, 255);">        &lt;DIS
tabIndex=&quot;-1&quot; id=&quot;panel&quot; name=&quot;panel&quot;
x=&quot;-300&quot; y=&quot;20&quot; type=&quot;ext&quot; url=&quot;&#39;common/whitePanel.swf&#39;&quot;&gt;&lt;![CDATA[]]&gt;&lt;/DIS&gt;<br>
</span><br>
<br>
Here&#39;s how we&#39;re loading the rlo file in our flash wrapper:<br>
<span style="color: rgb(51, 51, 255);">       
this._parent.attachMovie(&#39;Xerte&#39;, &#39;myRLO&#39;, 0).init(&#39;DABB.rlo&#39;, 230, 80, 1020,
640);</span><br>
<br>
<br>
In short, we&#39;ve figured out a way to edit the rlo files so that they work in
our wrapper but then they don&#39;t work outside of it.  <br>
<br>
Hoping there&#39;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>


<br>_______________________________________________<br>
Xerte mailing list<br>
<a href="mailto:Xerte@lists.nottingham.ac.uk">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>