Global variables for image captions

Build 1501 on 14/Nov/2017  This topic last edited on: 1/Mar/2016, at 12:30

You can put the following variables within the <Dict> node of the EditorialConfig configuration file. For instructions, see Adding or overriding variables in your EditorialConfig.

Find the actual values of such variables in EditorialConfig item in EdAdmin4, the Application Configuration > Client Applications, searching for EditorialConfig. The data is common for all titles in the system.

Should you need to specify different values of variables for different typographies, look for instructions at the Typography-dependent overridable variables.

Variable

Type

Default value

Comment

glbAFPCC_PCFields

String

"" (empty string)

Template for image caption. You can type GNML tags, and/or fixed text and also use predefined variables, such as:

$summary

$credit

$author

whose values are taken from the image atributes.

You cannot add other variables than specified above.

If the value is not specified in the EditorialConfig, the personal preferences are used instead - if defined.

How it works?

If GN4 finds a line in the EditorialConfig that contains glbAFPCC_PCFields, it will use its values to construct the image caption, instead of the values, specified in the user preferences as explained in Enable and configure the auto-caption frame.

<Item Name="glbAFPCC_PCFields" Value="&gt;caption&lt;$summary^&gt;credit&lt;$authors^ " />

Have in mind that the line content is indeed >caption<$summary^>credit<$authors^, but the syntax of the EditorialConfig entries requires that the ">" sign gets replaced with &gt; and the "<" sign with &lt;.

If the line is not specified in the EditorialConfig, the personal preference for the Fields are used instead - if defined.

See also

Global variables for image captions (auto runaround when drawing it)

Global variables for image captions (vert. aligning text in)

Global variables for images (removing from article)

Global variables for images (replacing non dummy)

Global variables for images (when placing into library object)

Global variables for images and captions (text wrap defaults)

Global variables for images link to article (crop or without it)