Document (Fields) /text/swriter/01/04090001.xhp

Document

Fields are used to insert information about the current document, for example, file name, template, statistics, user data, date, and time.
To insert a field in your document, first select the field Type, then click in the Select list, to choose which information item should be inserted, then click Insert.

Type

Lists the available field types.

Selecton "Document" and "DocInformation" tab page this is called "Select", on the other tab pages "Selection"

Lists what information can be inserted for a selected field type.

Available field Types and Select lists

Type Select list Author Name or initials of current user (as entered in %PRODUCTNAME - Preferences Tools - Options - $[officename] - User Data). Chapter Inserts the chapter number and/or the chapter name. Date Inserts the current date. You can insert the date as a fixed field - Date (fixed) - that does not change, or as a dynamic field - Date - that it is updated automatically. To manually update the Date field, press F9. File name Inserts the filename and/or the directory path of the current document, as well as the filename without extension. Page Inserts the page number of the current, previous, or next page. Paragraph Signature Inserts a meta-data field with a digital signature for the paragraph. You must have a digital certificate to sign a paragraph. Sender Inserts fields containing user data. You can change the user-data that is displayed by choosing %PRODUCTNAME - Preferences Tools - Options - $[officename] - User Data. Statistics Inserts document statistics, such as page and word counts, as a field. To view the statistics of a document, choose File - Properties, and then click the Statistics tab. Templates Inserts the filename, the filename without the file extension, the path, or the path and filename of the current template. You can also insert the Template name and Category of the current template. Time Inserts the current time. You can insert the time as a fixed field - Time (fixed) - that does not change, or as a dynamic field - Time - that it is updated automatically. To manually update the Time field, press F9.
To quickly insert a field from the Select list, double-click the field.

Format

If a field is displaying a date, time or number, then Format is used to customize the appearance of the date, time, or number. Common formats are shown in the Format window, or click "Additional formats" to define a custom format.
When you click "Additional formats", the Number Format dialog opens, where you can define a custom format. If you choose "Chapter number without separator" for a chapter field, the separators that are specified for chapter number in Tools - Chapter numbering are not displayed. If you choose "chapter number" as the format for reference fields, only the number of the chapter heading containing the referenced object is displayed in the field. If the paragraph style for the chapter heading is not numbered, the field is left blank. Inserts the field as static content, that is, the field cannot be updated. For the HTML export and import of date and time fields, special $[officename] formats are used.

Level

Enter outline level of the chapter to be displayed. The inserted field will display the value taken from last paragraph with the specified outline level placed before the inserted field.

Offset

Enter the offset value that you want to apply to a page number field, for example "+1".
With an Offset value of 1, the field will display a number that is 1 more than the current page number, but only if a page with that number exists. On the last page of the document, this same field will be empty. If you want to change the actual page number and not the displayed number, do not use the Offset value. To change page numbers, read the Page Numbers guide.

Offset in days/minutes

Enter the offset that you want to apply to a date or time field.