Global variables for spiking removed article elements

Build 1501 on 14/Nov/2017  This topic last edited on: 21/Mar/2016, at 18:34

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

globalSpikeDelElt

string

"-1"

-1 (that means true) is active if there is no line in EditorialConfig

You can define on the global level the behavior when deleting article elements. When an element is removed/unlinked from the parent article, it may be immediately deleted (spiked), or can be left in the system as an orphan element.

IMPORTANT: orphan photocaptions will prevent spiking of linked images!

There’s a global preference EdConfig.globalSpikeDelElt.

You have three choices:

delete (spike) the element after removing it from article with no additional prompt for spiking - just ask whether to remove the element or not: value = "-1"

prompt whether to spike the element or not, and prompt whether remove the element or not: value = "1"

leave the element in the system after removing it from article with no spiking prompt (not recommended): value = "0"

The system default, if no override is specified in EditorialConfig is "-1", but the standard EditorialConfig contains the line with the value "1".

If you modify the below line to the <Dict node of the Editorialconfig, to look like:

<Item Name="globalSpikeDelElt" Value="-1" />

... the article elements are removed and spiked at once, so there will be no text element orphans in the system.