Ask Your Question

Writer: Template and Custom properties

asked 2019-10-05 14:22:14 +0100

ajlittoz gravatar image

I am reviewing and editing a custom template. Compared to previous version, I added two new custom property items. I saved the new version as a template in a managed directory (one which is defined in Tools>Options, LibreOffice>Paths).

However, when I use it, new items do not always appear in File>Properties, Custom Properties:

  • File>New>Templates, selecting the required template and Open

    The new items don't show up. Apart from that, styles are up-to-date.

  • Double clicking on the .ott template file: new items are present

  • Double-clicking on the original .odt (this just opens the file; I know this doesn't activate the template feature): new items are present

Are there limitations or constraints when editing template files? What is the difference between double-clicking on the template and opening it through the New menu?

Configuration: Fedora Linux 30, LO

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

answered 2019-10-05 19:51:16 +0100

ebot gravatar image

updated 2019-10-06 14:58:29 +0100

I opened a blank document in Writer (default template). Then I created three custom properties (Text, Date, Number). I saved the document as a document template.

Then open via File>New>Templates. All three user defined properties are present.

The path is: C: \ Users \ USERNAME \ AppData \ Roaming \ LibreOffice \ 4 \ user \ template

When opening the OTT, there should be no difference, whether via the menu or directly the file.

I hope I could help you a little.


I opened the template as a document and added a fourth custom property. Then overwrite the original template (Save as Template). I reopened the template and the fourth custom property also exists.

image description

edit flag offensive delete link more


With me Windows 10 Home; Version 1903; 64-Bit | LibreOffice, Version: (x64).

ebot gravatar imageebot ( 2019-10-05 19:51:29 +0100 )edit

And what happens when you add another custom property and resave the template? I have no problem with a fresh template but this one hab been updated. This is the first time I add new properties in an existing template. There is no issue with added/updated styles.

ajlittoz gravatar imageajlittoz ( 2019-10-05 20:36:08 +0100 )edit

See my edited answer.

ebot gravatar imageebot ( 2019-10-05 21:08:48 +0100 )edit

I think there may be a cache issue.

I manually deleted all copies of custom templates in all template directories (I customised Tools>Options, LibreOffice>Paths adding another directory in my home dir, so that I could "play" with the template without the hassle to hunt for deeply buried dir within an invisible folder). When this erasure was done, I File>Templates>Save as template once again. LO warns me that I'm going to overwrite an existing template with same name (although I cleaned everything manually).

I suspect there is a cache somewhere and I don't know how to clear it.

ajlittoz gravatar imageajlittoz ( 2019-10-05 21:20:06 +0100 )edit

I have manually deleted all copies of custom templates

I assume you did not delete with the template management, right?

LO warns that I'm going to overwrite an existing template with same name

And there will be the problem. The template manager does not know that you deleted manually.

Unfortunately, I can not tell you where he saves it.

ebot gravatar imageebot ( 2019-10-06 07:39:23 +0100 )edit

I assume you did not delete with the template management, right?

Yes, because the template management has "strange" ways of overwriting templates: it does not replace a file but adds a numeric suffix to the name. I was then confused when File>New>Templates in presence of multiple "overwritten" templates because I could not identify the latest version: my names from the properties contain underscores, some of which are removed by the template manager (though they are still present in the Title). To overcome this ambiguity, I deliberately erase everything to have a "clean" directory, but I admit I may disturb the manager.

Additionally, when you save an existing .odt as a template, the .odt is changed into an .ott instead of creating an additional file (I have written my .odt directly in the template directory; this may be an error).

As you see, I may misuse the ...(more)

ajlittoz gravatar imageajlittoz ( 2019-10-06 08:00:30 +0100 )edit

As you see, I may misuse the template manager because I don't know exactly how it works.

I did not have that situation either. But maybe there is the possibility to reset the user profile?

PS: I have just created a description of document templates, but in German.

ebot gravatar imageebot ( 2019-10-06 14:27:34 +0100 )edit

@ebot: ich kann Deutsch lesen.

ajlittoz gravatar imageajlittoz ( 2019-10-06 14:33:27 +0100 )edit

Na prima. Wähle dich auf diese Wiki-Seite, (eine etwas ältere Beschreibung zu Version 5.1).

Dort unter Punkt 10 "Artbeitsdokumente/Referenzen", Referenz 1, findest du eine Beschreibung zum Herunterladen zu Version 6.3.

Ich wünsche dir viel Erfolg.

ebot gravatar imageebot ( 2019-10-06 14:51:41 +0100 )edit

Danke für die Referenzen

ajlittoz gravatar imageajlittoz ( 2019-10-06 14:58:38 +0100 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2019-10-05 14:22:14 +0100

Seen: 464 times

Last updated: Oct 06 '19