Your contact

Nachfolgender Link öffnet ein Pupup-Fenster für diese Website.Klaus Müller

+49 (0)89 892623-660

Get Template Version

GetTemplateVersion.fsi

Problem description

FrameMaker templates are standard FrameMaker documents. Per se these do not support any explicit versioning. However, in practice either a user variable is used or a corresponding entry is created on a reference page.

In order to determine the current template version of a document, the corresponding reference page must be displayed manually. Checking the version of all book documents is quite complicated.

Function description

The script shows the template version of the current document or all documents of the current book. All books or documents of a selected folder, including subfolders can also be checked.

If the template version of all checked documents does not differ, it will be shown in a dialog box.

To top

If the documents contain different template versions, a report is created.

Supported objects

For identifying the FM object which contains the template version, a special ID is required. The following IDs are currently supported: ‘TemplateVersion’, ‘Template Version’ and ‘Templateversion’.

The following objects can be used for the versioning:

  • Variable: The variable name must match the ID; the variable content contains the version.

  • Text frame on reference page: The name of the reference page and the text flow name of the text frame must match the ID. The first paragraph in this frame contains the version. The auto numbering of this paragraph is not evaluated, it can thus contain e.g. ‘Template version: ’.

  • Text line on reference page: The name of the reference page must match the ID. The text line must begin with the ID or be located in a reference frame whose name matches the ID.

Additional template information such as title and date can be displayed when the version information is in a table with the following structure:

  • The name of the reference page and the text flow name of the text frame must match the ID.

  • The first paragraph in the text frame must be ‘R1’. It contains the template title.

  • The first two columns of the table contain the template version and the template date; the current version information must be in the first standard row.

To top

Requirements

  • FrameMaker 6.0 or higher
  • FrameScript/ElmScript 4.1 or higher

Notes

The script works with structured and unstructured documents.

The report is saved in the document folder (‘_[i]_TemplateVersion.fm’).

To top