<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
<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><br><br><hr id="stopSpelling">From: maryann@moberg.com<br>Date: Mon, 8 Nov 2010 16:36:10 -0500<br>To: xerte@lists.nottingham.ac.uk<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></span><br style="color: rgb(51, 51, 255);">
<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></span><br style="color: rgb(51, 51, 255);"><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
Xerte@lists.nottingham.ac.uk
http://lists.nottingham.ac.uk/mailman/listinfo/xerte
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.                                            </body>
</html>