[Xerte] Developing xerte models from toolkits .rlm files

Johnathan Kemp johnathan.kemp at cxstaffs.co.uk
Thu Sep 10 14:27:22 BST 2009


Dear "Richly deserved award winning Xerte team",
 
If I have understood your reply you are referring to the Xerte online
tookits installation where you could find the models in
 
c:\xampp\htdocs\xertetoolkits\modules\xerte\parent_templates\Nottingham\
models
 
if you were using the Xampp installation.
 
I think I have effectively started working with the same set of files
but by creating an empty Xerte template based project and looking in the
models folder of the project.
 
However both sets of .rlm model files provide the same problem - they
are based around templateData. For example the getPageID script in the
accNav model contains
____________________________________
pageIcon = icon.parentNode.clip();
myXML = new XML(extXML.firstChild.childNodes[rootIcon.getPageIndex() -
pgOffset]);
pageIcon.templateData = myXML.toObject();
 
rootIcon.setTitleText(templateData.learningObject[0].name);
 
itemCount = pageIcon.templateData.accNav[0].nestedPage.length);
 

panelWidth = pageIcon.templateData.accNav[0].panelWidth;
_____________________________________________
 
This needs re-working to use in a non-template based Xerte project -
unless I am missing a trick here :-)
 
For example I changed the above to the text below, in an attempt to get
the code to reference back to the Xerte icons rather than an external
XML file supported by a wizard.
_______________________________________________
pageIcon = icon.parentNode.clip();
 
//myXML = new XML(extXML.firstChild.childNodes[rootIcon.getPageIndex() -
pgOffset]);
//pageIcon.templateData = myXML.toObject();
 
//rootIcon.setTitleText(templateData.learningObject[0].name);
 
//itemCount = pageIcon.templateData.accNav[0].nestedPage.length);
itemCount = icon.parentNode.findChildNodes('name','protoPane').length;
 
//panelWidth = pageIcon.templateData.accNav[0].panelWidth;
panelWidth = icon.parentNode.attributes.panelWidth;
__________________________________________________________
 
 
My original question was based on the assumption that the models might
first have been created as Xerte models and then the scripts modified
for use with external xml and a wizard file.
 
If these .rlms are all that is available then any pointers as to the
easiest way to use them in Xerte without using a template, so that full
scripting capability can be retained, would be welcomed.
 
Kind regards
 
Johnathan
 

Johnathan Kemp
ICT Development Coordinator
Connexions Staffordshire
www.cxstaffs.co.uk <http://www.cxstaffs.co.uk/> 
01785 355714


 

 

________________________________

From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Patrick
Lockley
Sent: 10 September 2009 13:05
To: Xerte discussion list
Subject: RE: [Xerte] Developing xerte models from toolkits .rlm files


Dear "Award winning" xerte team :)
 
The RLMs are all in the
download,modules/xerte/parent_templates/Nottingham/models
 
You can add xerte content on one page templates.

________________________________

From: xerte-bounces at lists.nottingham.ac.uk on behalf of Johnathan Kemp
Sent: Thu 10/09/2009 13:02
To: Xerte discussion list
Subject: [Xerte] Developing xerte models from toolkits .rlm files


Hello Xerte Team,
 
Unless I have failed to understand something, it is not possible to work
in Page Templates and have access to the power of the underlying Xerte
icons e.g. for scripting.
 
To try and get the best of both worlds I started to reverse engineer a
Xerte model from the accordion .rlm file, loading it into Xerte as a
model and then trying to work my way around all the references to
template data etc.
 
Then it occurred to me, that perhaps in the initial development of the
page templates perhaps the Xerte models had been created.
 
So my question is, does a set of Xerte models exist, equivalent to the
set of .rlm files used by pageTemplates, that would work in Xerte rather
than requiring a related template file? 
 
If so, are they available for downloading?
 
This could save a lot of time in trying to re-engineer the models from
the current .rlm files.
 
Kind regards
 
Johnathan
 

Johnathan Kemp
ICT Development Coordinator
Connexions Staffordshire
www.cxstaffs.co.uk <http://www.cxstaffs.co.uk/> 
01785 355714


 

 
________________________________

This email and any files transmitted with it are confidential and are
intended solely for the use of the individual(s) or entity(s) to whom
they are addressed. All messages are monitored for virus, high risk
files and inappropriate content. As a result users should be aware that
this mail maybe accessed, read and the right is reserved to reject,
return, remove attachments or delete if considered to be inappropriate
or unsuitable. Liability cannot be accepted for any loss or damage
arising from this email (or any attachments) or from scripts or any
virus transmitted. This communication represents the originator's
personal views and opinions, which do not necessarily reflect those of
Connexions Staffordshire. If you are not the original recipient or the
person responsible for delivering the email to the intended recipient,
be advised that you have received this email in error, and that any use,
dissemination, forwarding, printing, or copying of this email is
strictly prohibited. If you received this email in error, please
immediately reply to the sender or notify postmaster at cxstaffs.co.uk
Connexions Staffordshire Limited is registered in England No.4355170
Registered office: Foregate House, 70 Foregate Street, Stafford,
Staffordshire, ST16 2PX
This email and any files transmitted with it are confidential and are intended solely for the use of the individual(s) or entity(s) to whom they are addressed. All messages are monitored for virus, high risk files and inappropriate content. As a result users should be aware that this mail maybe accessed, read and the right is reserved to reject, return, remove attachments or delete if considered to be inappropriate or unsuitable. Liability cannot be accepted for any loss or damage arising from this email (or any attachments) or from scripts or any virus transmitted.

This communication represents the originator's personal views and opinions, which do not necessarily reflect those of Connexions Staffordshire. If you are not the original recipient or the person responsible for delivering the email to the intended recipient, be advised that you have received this email in error, and that any use, dissemination, forwarding, printing, or copying of this email is strictly prohibited. If you received this email in error, please immediately reply to the sender or notify postmaster at cxstaffs.co.uk


Connexions Staffordshire Limited is registered in England No.4355170
Registered office: Foregate House, 70 Foregate Street, Stafford, Staffordshire, ST16 2PX
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20090910/5adb1f89/attachment.html


More information about the Xerte mailing list