This website can use cookies to improve the user experience

This website can use cookies to improve the user experience and to provide certain services and functions to users. Cookies contain small amounts of information (such as login information and user preferences) and will be stored on your device.

Enable All Cookies Privacy Policy

Import templates from XML file doesn't work


avatar
cosmin 269
From: -
At first I tried to import a template called techpro using an XML file directly. It actually came up empty.
After that I tried importing it after first creating a template by then name "techpro" first as a copy of the master on the destination site and then trying to import the techpro XML file. This didn't work either, the templates weren't updated with the contents of the XML file.
Please fix it.

Notice

This topic is archived. New comments cannot be posted and votes cannot be cast.

Responses to this topic


1 Re: Import templates from XML file doesn't work
avatar
OP 269
From: -
Thank you, it worked. You may nevertheless want to update the code for 2.2 in order to deal with that kind of code.
1 Re: Import templates from XML file doesn't work
avatar
Administrator
1340
From: Vienna, Austria
Thanks. The included site_footer template is using a CDATA section inside the code, which breaks the entire XML file.

You can fix it easily by removing the following two lines from the template XML file:

Line 265:
/* <![CDATA[ */

and line 305:
/* ]]> */
1 Re: Import templates from XML file doesn't work
avatar
Administrator
1340
From: Vienna, Austria
Can you attach the XML file or send me a PM with a download link?

Notice

This topic is archived. New comments cannot be posted and votes cannot be cast.