PDA

View Full Version : How to upload/create duplicate m2 template?


yogabasics
08-24-2007, 08:57 AM
I just want to make a copy of the m2 template for MT 2.0.1. When I copy the folder, change the name, make a zip of it and then try to upload it I keep getting the error "Template installation failed." What am I doing wrong?? Is there a copy of the m2 template that is zipped and ready to be uploaded as a duplicate?
I really need 2 different templates running on MT, and it seems like it should be an easy thing to accomplish. All help is greatly appreciated!

dknight
08-24-2007, 02:37 PM
You need to alter the templateDetails.xml to give it a new name, otherwise the installation will fail. I'm attaching a template called m2clone which can be installed in Mosets Tree for custom templating. Have fun :)

UPDATE: template file updated with 2.0.5.

furthest
08-27-2007, 11:44 AM
What needs to be changed in order to give the template a new name?


I assumed all one would need to do is change <name>template</name>, and then zip and rename to tem_template.zip. However, I cant get it to work. tem_m2clone.zip work fine, but I cant rename.


<?xml version="1.0" encoding="iso-8859-1"?>
<mosinstall type="template">
<name>template</name>
<creationDate>August 2007</creationDate>
<author>Lee Cher Yeong</author>
<copyright>This template is copyrighted to Lee Cher Yeong.</copyright>
<authorEmail>mtree@mosets.com</authorEmail>
<authorUrl>www.mosets.com</authorUrl>
<version>1.0</version>
<description>A clone for M2 template. Starting point for custom Tree template.</description>

dknight
08-28-2007, 05:07 PM
You need to edit the templateDetails.xml file and the corresponding record in the database - jos_mt_templates.

CavySpirit
01-11-2008, 09:08 AM
I'm also not getting it. Why can't I get my cloned version to work. The zip file presented here works. BUT, I'm on 2.0.5 and am reluctant to use this version.

What is the trick to copying your existing template, updating the xml file, rezipping and uploading? Why doesn't it work when I do it?

Can you outline the exact changes and steps needed to copy the M2 into a new template?

Thanks so much.

dknight
01-11-2008, 05:56 PM
Cavy,

The problem with your template is that you compress the files under /m2vets. You'll need to have all the files in the root directory in your zip file.

I've also updated m2clone template with files from Mosets Tree 2.0.5. Hope this helps :)

CavySpirit
01-11-2008, 06:15 PM
Cavy,

The problem with your template is that you compress the files under /m2vets. You'll need to have all the files in the root directory in your zip file.

I've also updated m2clone template with files from Mosets Tree 2.0.5. Hope this helps :)

Thanks for the info and the updated file.
Cheers!