[Xerte] templatePath problem in Page Templates with Desktop Xerte 2

Dave Burnett d_b_burnett at hotmail.com
Mon Nov 8 22:11:09 GMT 2010



This is all highly un-researched, just indirect references I found in the archives:


"You need to distinquish between template path and FileLocation when running in toolkits, as the two locations are different. 
FileLocation is the folder where the xml file is; templatePath is the folder where the rlt is. 
Locally, the two are the same."

I did a search in a local copy of XOT and found this in rloObject.js:

var templatePath = rloFile.substr(0, rloFile.lastIndexOf('/') + 1);
================

I'm guessing .rloFile refers to the domain path to the .rlo on the server.

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).


Dave




From: maryann at moberg.com
Date: Mon, 8 Nov 2010 16:36:10 -0500
To: xerte at lists.nottingham.ac.uk
Subject: [Xerte] templatePath problem in Page Templates with Desktop Xerte 2

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.  

Everything works fine with the wizard created pages when run directly in the browser.  



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.  

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. 



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.

 
Here's the line from the one of the page template rlm files:


        <DIS tabIndex="-1" id="panel" name="panel" x="-300" y="20" type="ext" url="templatePath + 'common/whitePanel.swf'"><![CDATA[]]></DIS>



Tried substituting "fileLocation" for it but that didn't work.  


What did work is just removing "templatePath"  from the url like this:
        <DIS tabIndex="-1" id="panel" name="panel" x="-300" y="20" 
type="ext" url="'common/whitePanel.swf'"><![CDATA[]]></DIS>

Here's how we're loading the rlo file in our flash wrapper:


        this._parent.attachMovie('Xerte', 'myRLO', 0).init('DABB.rlo', 230, 80, 1020, 640);



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.  

Hoping there's a way to get the same file to work in both situations.



Thanks!!
ma





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.


_______________________________________________
Xerte mailing list
Xerte at 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. 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20101108/0894c1f3/attachment.html


More information about the Xerte mailing list