Change template location?

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?

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.

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?

Perhaps can help:

Menu/Tools/LibreOffice/Paths/Templates.

Thanks, but how will this help me?

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 “file.zip”. (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 “file.zip” to the original extension.

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