[Xerte] Re: XOT "Upload a new Template" button not working
Kemp Johnathan
johnathan.kemp at ntlworld.com
Wed Aug 29 10:41:38 BST 2012
When creating a new page template you need to give your files a new name,
unless you intend to replace the existing page type. Also you need to
ensure that your object names in the xwd file are unique (not used by other
pages ) and that your model file has been edited to use these object names.
The top level object name and file name should be the same.
For example the objects in the slideshow page, as shown in data.xwd are
"slideshow" and "nestedPage"
So your new page might use instead "slideshow_jc" and "nestedPage_jc" and
references to "slideshow" and "nestedPage" in your .rlm file would need
changing accordingly. You can do this with a search and replace using
FlashDevelop.
Your new model file would be called slideshow_jc.rlm
Kind regards
Johnathan
On 29 August 2012 10:06, 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<http://wiki.xerte.net/index.php5?title=Template_table#Xerte_Wizard>
> .
>
>
>
> 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
> <xerte%40lists.nottingham.ac.uk?Subject=Re%3A%20%5BXerte%5D%20Re%3A%20XOT%20%22Upload%20a%20new%20Template%22%20button%20not%20working&In-Reply-To=%3C4ECCC8F5.80507%40tor.nl%3E>
> 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.
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20120829/2fccbeaa/attachment.html>
More information about the Xerte
mailing list