[Xerte] Re: XOT "Upload a new Template" button not working

Tom Reijnders reijnders at tor.nl
Mon Sep 10 14:32:27 BST 2012


I fixed some issues in the import code of XOT. So the original method 
will work in the future.

Also, yes, it should be relatively easy to add the abillity to 
import/update on a page level. All the code is there, but it needs a 
management frontend.

Tom
Op 30-8-2012 14:24, Julien CHEZEAUX schreef:
> Hello all!
>
> Thanks a lot for your help. I managed to get it working with Julian Tenney method (modifying the Nottingham xwd in order to insert the model in the template).
>
> Furthermore, following Pat Lockley advices, I copied my template into the parent_template directory and modified the originaltemplatedetails in the database, and so I got the template name listed in XOT user interface. I can start a new project with this template, but it is impossible to insert an object in it, I guess the link between the database entry and the rlm template is not working. Anyway it doesn't matter because I got the model working with the original template.
>
> Thanks also to Johnathan Kemp for the instructions on how to create the new model, I did it right before reading your message but it's always a good thing to have all the details gathered.
>
> Now it's time to create content!
>
> Julien Chezeaux
>
> -----Message d'origine-----
> De : xerte-bounces at lists.nottingham.ac.uk [mailto:xerte-bounces at lists.nottingham.ac.uk] De la part de Julian Tenney
> Envoyé : mercredi 29 août 2012 11:23
> À : Xerte discussion list
> Objet : [Xerte] Re: XOT "Upload a new Template" button not working
>
> Probably. It might be a discussion for October. It would probably be possible to piggy back on Tom's work re: modularisation to make it easy to add new models to a template and rebuild a big xwd from all the small ones on the server, rather than in the standalone (it's PHP, right?)
>
> -----Original Message-----
> From: xerte-bounces at lists.nottingham.ac.uk [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Pat Lockley
> Sent: 29 August 2012 10:21
> To: Xerte discussion list
> Subject: [Xerte] Re: XOT "Upload a new Template" button not working
>
> Adding a model via the website wouldn't work anyway?
>
> Dev-list time?
>
> On Wed, Aug 29, 2012 at 10:14 AM, Julian Tenney <Julian.Tenney at nottingham.ac.uk> wrote:
>> Yeah, I would add it to your modules/xerte/parent_templates xwd file, and then put the model in models, any common in /common and effectively modify the main template rather than creating a new template just for one more model.
>>
>> -----Original Message-----
>> From: xerte-bounces at lists.nottingham.ac.uk
>> [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Pat Lockley
>> Sent: 29 August 2012 10:10
>> To: Xerte discussion list
>> Subject: [Xerte] Re: XOT "Upload a new Template" button not working
>>
>> Hello,
>>
>> I would guess that the code behind that button works with the old model format, but not the new one.
>>
>> If you ftp to modules/xerte - you can add the model by putting the
>> files into that
>>
>> then you need to edit the originaltemplatedetails table in the
>> database
>>
>> Pat
>>
>> On Wed, Aug 29, 2012 at 10:06 AM, Julien CHEZEAUX <julien.chezeaux at scassi.com> wrote:
>>> Hello all!
>>>
>>>
>>>
>>> Trying to make a new model available in XOT, I created a new template
>>> with Xerte (Page Template).
>>>
>>> Then I created the new model (indeed, I cloned and modified the
>>> slideshow model).
>>>
>>> Then I updated the template.xwd, following this guide.
>>>
>>>
>>>
>>> Now I have a template that suits me, and I want to get it usable in XOT.
>>>
>>> So, reading the previous Xerte mailing list posts on this topic, a
>>> created a zip file containing the template, that is:
>>>
>>> *         mytemplate/common/*
>>>
>>> *         mytemplate/languages/*
>>>
>>> *         mytemplate/media/*
>>>
>>> *         mytemplate/models/* (-> with my modified copy of slideshow.rlm)
>>>
>>> *         mytemplate/thumbs/*
>>>
>>> *         mytemplate/mytemplate.rlt
>>>
>>> *         mytemplate/template.xml
>>>
>>> *         mytemplate/template.xwd (-> updated to define the new model)
>>>
>>>
>>>
>>> But, as some other people here, I am stuck with the template upload
>>> button in management.php, which doesn't do anything, neither giving
>>> me any error message.
>>>
>>>
>>>
>>> Is there a way to resolve this problem, or a different way to import
>>> a template in XOT ? Maybe manually copying the files on the file
>>> system and updating the database ?
>>>
>>>
>>>
>>> Tom Reijnders reijnders at tor.nl wrote on Wed Nov 23 10:20:37 GMT
>>> 2011:
>>>
>>>
>>>
>>> It is not trivial to create a correct zip file form an existing XOT
>>>
>>> installation:
>>>
>>>
>>>
>>> 1. Create a folder  to hold the template
>>>
>>> 2. copy the files from modules\xerte\template\<templatename>  to that
>>> folder
>>>
>>> 3. copy the files from modules\xerte\parent_template\<templatename>
>>> to
>>>
>>> that folder
>>>
>>> 4. rename data.xwd and data.xml to template.xwd and template.xml
>>>
>>> 5. zip the folder created in 1.
>>>
>>>
>>>
>>>
>>> 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.
>>>
>>>
>> _______________________________________________
>> Xerte mailing list
>> Xerte at lists.nottingham.ac.uk
>> http://lists.nottingham.ac.uk/mailman/listinfo/xerte
>>
>> _______________________________________________
>> Xerte mailing list
>> Xerte at lists.nottingham.ac.uk
>> http://lists.nottingham.ac.uk/mailman/listinfo/xerte
> _______________________________________________
> Xerte mailing list
> Xerte at lists.nottingham.ac.uk
> http://lists.nottingham.ac.uk/mailman/listinfo/xerte
>
> _______________________________________________
> Xerte mailing list
> Xerte at lists.nottingham.ac.uk
> http://lists.nottingham.ac.uk/mailman/listinfo/xerte
>
>
>
> _______________________________________________
> Xerte mailing list
> Xerte at lists.nottingham.ac.uk
> http://lists.nottingham.ac.uk/mailman/listinfo/xerte
>

-- 
--

Tom Reijnders
TOR Informatica
Chopinlaan 27
5242HM Rosmalen
Tel: 073 5226191
Fax: 073 5226196




More information about the Xerte mailing list