Extend global overridable variables to CustomTed

Build 1501 on 14/Nov/2017  This topic last edited on: 22/Dec/2015, at 09:29

By default, the CustomEdConfig class is available in the standard configuration since the build 2209 in GN4 versions 2.1 and 2.0. To add it manually to your older CustomTed.vb, follow the described steps.

1.Open the CustomTed.vb and then go to the end of all code.

2.Make a new line, and then write the following:

Public Class CustomEdConfig

  Inherits EdConfig

 

  'Public Shared ReadOnly Property yourglobalvariable() As String

  '  Get

  '    Return GetDef("yourglobalvariable", "yourdefaultvalue")

  '  End Get

  'End Property

 

End Class

The commented part is just a reminder of the required syntax. You can type it or skip it.

customted2

The variables you add here will be overridable in EditorialConfig as the ones created in Ted.vb.

 

 

 

An example: the GN4 default for kicker frame height (when adding it on Fred4) is 30000 mpt, but in your GN4 system you need it to be 24000 mpt. Or, the default name of the body element is "body", while in your Italian GN4 system you want it to be "testo". Or you want some script not to prompt you for the choice, but to predefine the choice.

In version 1.5 and in 1.4.1587.x or newer, we introduced the concept of typography-dependent global overridable variables (see Typography-dependent overridable variables for further details).

_important To make the changes available to GN4 client workstations after modifying EditorialConfig, make all users to log out and log back on to GN4 client software. IIS reset is not needed.

hmtoggle_plus1Where defined?
hmtoggle_plus1Structure of the VB.Net properties in Ted.VB
hmtoggle_plus0Overriding variables in your EditorialConfig

See Adding or overriding variables in your EditorialConfig.

hmtoggle_plus1Using variables in add-ins
hmtoggle_plus1Syntax for <Dict> node entries in the EditorialConfig
hmtoggle_plus1About Boolean values in <Dict> node