[Xerte] Re: Upload template to Xerte Toolkits

Ron Mitchell ronm at mitchellmedia.co.uk
Fri Apr 8 09:42:29 BST 2011


I tried this last night and it does seem to work! Thanks Tom.

Not sure if Pat has looked yet but would be good if this could be included
in the updated XOT?

That said the process would still need to be documented because whoever has
admin access would still need to change access settings and possibly change
the date_uploaded date in the database to determine the order in which
templates appear. Would be good if the template order could be managed via
the management page.

 

From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Tom Reijnders
Sent: 25 March 2011 11:34
To: Xerte discussion list
Subject: [Xerte] Re: Upload template to Xerte Toolkits

 

Ehmm... see attached

Op 25-3-2011 9:46, Tom Reijnders schreef: 

Julian, Patrick, 

I think I finally figured out how to import a template into Xerte Toolkits
using the importer. 

There are (I think) two bugs in the import_template.php: 

Before line 318 (the loop that copies the models) there should be a line to
set up the loop 

copy_loop($xerte_toolkits_site->import_path . $this_dir . "models"); 

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 

delete_loop($xerte_toolkits_site->import_path . $this_dir); (line 332 of the
original file) 

Can you please verify? I included my version and a diff. 

Regards, 

Tom 



Op 24-3-2011 13:54, Tom Reijnders schreef: 



I still can't manage to upload a template to XOT. 

I retrived the Nottingham template to my local PC 

 - renamed data.xwd and data.xml to template.* 
 - edit the template in Xerte Standalone 

Now... how do I get this in a template package to be uploaded using the
management.php 

I already figured out that I need to zip the folder above the files. So now
I have: 

template\Example.rlt 
template\data.xwd 
template\data.xml 
template\common\* 
template\media\* 
template\models\* 
template\thumbs\* 

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) 

Regards, 

Tom 





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





-- 
--
 
Tom Reijnders
TOR Informatica
Chopinlaan 27
5242HM Rosmalen
Tel: 073 5226191
Fax: 073 5226196
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20110408/879a614a/attachment.html>


More information about the Xerte mailing list