18.4.2.7 Assigning a computed title

If titles for your HTML pages can be determined based on the value of a macro variable, or on values obtained by expanding a macro, you can assign the macro or macro variable to the [HTMLOptions]Title keyword.

For example, to provide a page title that consists of the FrameMaker source file name followed by an integer that increments for each HTML file generated:

[HTMLOptions]

Title=<$PageTitle>

[PageTitle]

<$$_basefile><$$PgNumber++ as %-0.3d>

[MacroVariables]

PgNumber=0

Any other title specification overrides a computed [HTMLOptions]Title value.

See also:

§28.1 Defining and invoking macros

§28.3.3 Incrementing and decrementing macro variables

§28.6.3 Displaying expression results in output