Omni Systems, Inc.

  

Mif2Go User's Guide, Version 55

  

Valid HTML 4.01!

 

Made with Mif2Go

18 Splitting and extracting files > 18.6 Referencing split and extract files


18.6 Referencing split and extract files

You can use the predefined macro variables listed in Table 18-6 to refer to file names and titles of split and extract files. You can use these variables anywhere in a macro, including within JavaScript sections. They are valid in all parts of a file, including within the base part from which the other parts are split or extracted.

For navigation links between FrameMaker files, use Mif2Go-supplied navigation macros instead; see §18.5 Inserting HTML code in split and extract files.

Table 18-6 Predefined macro variables for splits and extracts

Type

Variable

Description

File name

$$_basefile

Base name only of the parent file, without extension.

$$_currbase

Base name only of the current split part, without extension.

$$_currfile

Current split part: file name with extension

$$_currfilepath

Current split part: full path and file name with extension

$$_extrgraphid

Internal file name of first graphic referenced in an extract

$$_extrfile

Current extract file name

$$_extrgraph

File name of first graphic in an extract, as modified by any [Graphics]ExtrGraphSuffix; use for thumbnails (see §18.7.3 Replacing extracts with links in the parent file)

$$_extrgraphid

Mif2Go internal name of first graphic in an extract

$$_nextfile

Split part that follows $$_currfile

$$_prevfile

Split part that precedes $$_currfile

Title

$$_currtitle

Current file title, unaffected by extracts, so it can be used in an extract to get the parent file title.

$$_basetitle

Original document title, unaffected by splits.

$$_prevtitle

Title of $$_prevfile split part.

$$_nexttitle

Title of $$_nextfile split part.

$$_extrtitle

Current extracted-part title; used in a replacement macro for the extract, to reference the extract title.; see §18.7.3 Replacing extracts with links in the parent file.

Boolean

$$_firstfile

1 if this is the first split part, otherwise 0; intended for JavaScript use.

$$_lastfile

1 if this is the last split part; otherwise 0; intended for JavaScript use.

Interfile links

When the current split part is the first or the last in a FrameMaker file, the following macro variables can also apply to the preceding or following FrameMaker file when you use Mif2Go navigation macros

$$_prevfile

$$_prevtitle

$$_nextfile

$$_nexttitle

Note:  Predefined macro variables $$_firstsfile and $$_prevsfile are no longer needed, and their use is deprecated; however, existing deployments are not affected, so you can continue to use these variables in macro code.

See §18.5 Inserting HTML code in split and extract files for additional settings you can use for links between FrameMaker files.



18 Splitting and extracting files > 18.6 Referencing split and extract files