Ask Your Question

Change template location?

asked 2015-04-29 00:28:44 +0200

LibreGuy gravatar image

Hi guys,

Before I screw things up, I would like to know if it is possible to change the location of a template file without breaking the connection to all of the files that were created with this specific template.

So for example, I have a template file A and used that to create file X.

Now I change the location of file A from C:\templates_old to C:\templates_new. When I do that, will the connection between A and X be maintained? So if I update a style in template A, will file X still be updated?

edit retag flag offensive close merge delete

3 Answers

Sort by » oldest newest most voted

answered 2015-05-01 16:22:10 +0200

LibreGuy gravatar image

So I changed the location of the templates. Now here we go: after changing the template path in LO as well, rename a file that was based on one of the templates to "". (only change the extension)

Extract the zip file. Open meta.xml in notepad. Find "meta:template" and then change "xlink:href" to the new location of the template. Save the file. Select all files and zip them to one file again. Rename "" to the original extension.

This worked for me, so I thought I would share it with you guys.

edit flag offensive delete link more

answered 2015-04-29 14:01:03 +0200

ROSt52 gravatar image

The link breaks but you can import the changed Styles &Formats.

Open your file X > open Styles & Formats (F11) click for each tab (page, character, etc) top right button to import Styles & Format from your template A > select overwrite and you have the new Styles & Formats in your file.

You have to do for each file after moving your template A.

edit flag offensive delete link more


Allright, that was not the solution I was hoping for. I understand that LibreOffice files are actually zip files. What if I unzip, change the path of the template file, and then zip it again. Would that somehow work?

LibreGuy gravatar imageLibreGuy ( 2015-04-29 14:53:42 +0200 )edit

answered 2015-04-29 16:25:34 +0200

m.a.riosv gravatar image

Perhaps can help:


edit flag offensive delete link more


Thanks, but how will this help me?

LibreGuy gravatar imageLibreGuy ( 2015-04-29 16:30:07 +0200 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2015-04-29 00:28:44 +0200

Seen: 347 times

Last updated: May 01 '15