Document/text/swriter/01/04090001.xhpDocumentFields are used to insert information about the current document, for example, file name, template, statistics, user data, date, and time.For the HTML export and import of date and time fields, special $[officename] formats are used.TypeLists the available field types. To add a field to your document, click a field type, click a field in the Select list, and then click Insert. The following fields are available:
TypeMeaningAuthorInserts the name of the current user. ChapterInserts the chapter number and/or the chapter name.DateInserts 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 nameInserts the filename and/or the directory path of the current document, as well as the filename without extension.PageInserts the page number of the current, previous, or next page.SenderInserts fields containing user data. You can change the user-data that is displayed by choosing %PRODUCTNAME - PreferencesTools - Options - $[officename] - User Data.StatisticsInserts 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. TemplatesInserts the filename, the path, or the filename without the file extension of the current template. You can also insert the names of the "Category" and the "Style" formats used in the current template.TimeInserts 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.
The following fields can only be inserted if the corresponding field type is selected in the Type list.Selecton "Document" and "DocInformation" tab page this is called "Select", on the other tab pages "Selection"Lists the available fields for the field type selected in the Type list. To insert a field, click the field, and then click Insert.To quickly insert a field from the list, hold down Command
Ctrl and double-click the field.
FieldsFunctionPrevious pageInserts the page number of the previous page in the document.Next page Inserts the page number of the next page in the document.Page Number Inserts the current page number.
In the Format, click the numbering format that you want to use.If you want, you can enter an Offset for the displayed page number. 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.OffsetEnter the offset value that you want to apply to a page number field, for example "+1".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.FormatClick the format that you want to apply to the selected field, 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.The following number range formats are for paragraphs formatted with numbered or bulleted lists:
Category and numberThe format contains everything between the beginning of the paragraph and directly after the number-range fieldCaption textThe format contains the text following the number-range field up to the end of the paragraphNumberThe format only contains the reference number
Inserts the field as static content, that is, the field cannot be updated.LevelSelect the chapter heading level that you want to include in the selected field.Offset in days/minutesEnter the offset that you want to apply to a date or time field.ValueEnter the contents that you want to add to a user-defined field.