Templates in the Template Manager

The recommended method for working with templates is to use the Template Manager and the commands in the File - Templates submenu, Edit Template and Save as Template. These commands are sufficient for basic management of templates in LibreOffice.

This guide explains how the file system interacts with the Template Manager. This information is particularly useful if you want to manage directories directly, but still be coordinated with the Template Manager.

Working with Template Files

Менеджер шаблонів розпізнає файли шаблонів за їх розширенням. Розпізнано такі розширення:

Application

Розширення

Writer

.ott .otm .oth .stw .dot .dotx

Calc

.ots .stc .xlt .xltm .xltx

Impress

.otp .pot .potm .potx .sti

Draw

.otg .std


For information about the meaning of the extensions see Filter Conversion.

Working with Template Names

Диспетчер шаблонів відображає поле заголовка документа як назву шаблону. Поки поле заголовка не є порожнім, назва файлу не впливає на назву шаблону, яке відображається в диспетчері шаблонів. Якщо поле Заголовок порожнє, назва файлу без розширення відображається як назва шаблону.

note

If two templates have the exact same entry in the Title field and belong to the same Category, then only one template appears in the Template Manager.


Titles are case-sensitive. For example, if one template in category My Templates has the title a4 and another has the title A4, then both templates appear in the Template Manager. If both templates have the title A4, then only one appears.

If templates have the same title, but belong to different categories, then all appear in the Template Manager. For example, if three templates have the title A4, and each template belongs to a different category, then all three templates appear with the Template Name A4.

You can edit the Title field by choosing File - Properties - Description. If you change the Title field, then the new title also appears as the Template Name in the Template Manager. Alternatively, if you use the Rename command in the context menu for a template, then the Title field of the template is changed to the new Template Name.

If you use the File - Save as Template dialog, then the name entered in that dialog is used as the filename and entered into the Title field. If you change the filename later, the template will still appear in the Template Manager according to the entry in the Title field.

note

The Title field of a template is included in the Title field of new documents created from the template.


Controlling which Files Appear in the Template Manager

The Template Manager displays templates located in the directories defined in the Paths dialog for Templates. The dialog is found by choosing - LibreOffice - Paths, selecting Templates, and clicking Edit.

Internal Paths

The Internal Paths directories cannot be changed. They identify the location of the predefined templates. These templates are always shown in the Template Manager.

User Paths

The default setting for User Path is the template subdirectory in the user profile directory. Розміщення теки {user profile} задають під час встановлення LibreOffice. Дивіться секцію Типове розміщення на сторінці Wiki про профіль користувача LibreOffice, щоб дізнатись більше про типові розміщення профілю користувача у різних операційних системах.

Templates in the directories specified in User Path and its subdirectories are shown in the Template Manager. Subdirectories within subdirectories are not recognized.

You can add additional directories to the User Path. There has to be at least one directory in User Path, but there are no limits on where it is located.

note

It is not a good idea to add a root Document directory, or other high-level directory, to your template User Path. All subdirectories in a User Path directory appear in the Template Manager as Categories.


If you have more than one directory in the User Path, then you must select which directory will be used to save a document as a template when the File - Save as Template command is used.

Кнопка Типово скидає шлях користувача до початкових налаштувань під час встановлення LibreOffice.

Як працювати з Категоріями

Назви підтек у визначених користувачем теках відображаються як назви Категорій у Менеджері шаблонів. Якщо Ви перейменовуєте категорію, підтека залишається, а нова назва категорії зберігається у файлі groupuinames.xml у обраному Типовому шляху.

When a Category is selected, then all templates in that subdirectory are shown in the Template Manager, if All Applications is the Filter selection.

A category can only show templates in its own subdirectory, with two exceptions.

Categories within a Category are not possible, because subdirectories within subdirectories are not recognized.

You can only rename and delete categories in the Default Path selected in the Edit Paths dialog.

warning

If you delete a Category whose subdirectory is in the selected Default Path, then the subdirectory associated with the Category name and any files in the subdirectory are deleted.


Будь ласка, підтримайте нас!