<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Still another small problem in the code <br>
<br>
The models ended up in the common directory.<br>
<br>
See attached.<br>
<br>
Op 25-3-2011 9:46, Tom Reijnders schreef:
<blockquote cite="mid:4D8C5681.80100@tor.nl" type="cite">Julian,
Patrick,
<br>
<br>
I think I finally figured out how to import a template into Xerte
Toolkits using the importer.
<br>
<br>
There are (I think) two bugs in the import_template.php:
<br>
<br>
Before line 318 (the loop that copies the models) there should be a
line to set up the loop
<br>
<br>
copy_loop($xerte_toolkits_site->import_path . $this_dir . "models");
<br>
<br>
And the lines that copy the template.rlt, the template.xwd and the
template.xml should be before the loop that cleans up the import
area..., so I moved them to line
<br>
<br>
delete_loop($xerte_toolkits_site->import_path . $this_dir); (line
332 of the original file)
<br>
<br>
Can you please verify? I included my version and a diff.
<br>
<br>
Regards,
<br>
<br>
Tom
<br>
<br>
<br>
<br>
Op 24-3-2011 13:54, Tom Reijnders schreef:
<br>
<blockquote type="cite">I still can't manage to upload a template to
XOT.
<br>
<br>
I retrived the Nottingham template to my local PC
<br>
<br>
- renamed data.xwd and data.xml to template.*
<br>
- edit the template in Xerte Standalone
<br>
<br>
Now... how do I get this in a template package to be uploaded using the
management.php
<br>
<br>
I already figured out that I need to zip the folder above the files. So
now I have:
<br>
<br>
template\Example.rlt
<br>
template\data.xwd
<br>
template\data.xml
<br>
template\common\*
<br>
template\media\*
<br>
template\models\*
<br>
template\thumbs\*
<br>
<br>
in a zip file, and the management.php says the structure is mad, but
in XOT itself, I can't see the template (and yes, I renamed the
template in the xml)
<br>
<br>
Regards,
<br>
<br>
Tom
<br>
<br>
</blockquote>
<br>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Xerte mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Xerte@lists.nottingham.ac.uk">Xerte@lists.nottingham.ac.uk</a>
<a class="moz-txt-link-freetext" href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte">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.
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
--
Tom Reijnders
TOR Informatica
Chopinlaan 27
5242HM Rosmalen
Tel: 073 5226191
Fax: 073 5226196
</pre>
</body>
</html>