Global Content Variables

From Enterprise Help
This is the approved revision of this page, as well as being the most recent.
Jump to: navigation, search

Global Content Variables are snippets of frequently-used or frequently-modified text and/or HTML that can be inserted anywhere merge codes are supported, such as in the content of your Mailings, or on your Member Subscribe Page. When you change the content of a Global Content Variable, the new content will automatically be used anywhere the Global Content Variable is referenced.


Gcv.2.png


Enterprise automatically uses the HTML version of a Global Content Variable wherever HTML is supported (such as in the HTML Body of a mailing, or on the Member Subscribe Page) and the Text version wherever HTML is not supported (such as in the Text Body of a mailing, or in the Subject of a mailing). It is not necessary to define both HTML and Text versions, but Enterprise will never insert the Text version in an HTML context, or vice versa. In other words, if a Global Content Variable containing only an HTML version is used in a non-HTML context, it will produce no output at all.


Gcvedit.2.png


For example, you could create a Global Content Variable named "Corporate Address", for which the content consists of your corporate mailing address, your phone number, and the URL of your Website. The HTML version could differ from the Text content in that the HTML version used tags instead of hard-return characters to separate different lines of the address. You could then use that Global Content Variable in all your mailings, and on your Member Subscribe Page. If, in the future, any aspect of your address, phone number, or Website URL changed, you could simply change the definition of the Global Content Variable, and the change would automatically be reflected anywhere the Global Content Variable was referenced.


The rich text editor contains a dropdown menu from which Global Content Variables can be inserted. To reference a Global Content Variable directly in your content, use the following syntax:


##Global.VariableName##

...replacing VariableName with the name you've chosen for your Global Content Variable.


The content of a Global Content Variable can contain merge codes, predefined links, and dynamic content. It can even contain references to other Global Content Variables, and this "nesting" can be up to five levels deep (i.e., a Global Content Variable can contain a reference to a second Global Content Variable that in turn references a third Global Content Variable, which can then reference a fourth Global Content Variable, which can then reference a fifth Global Content Variable which can then reference a sixth Global Content Variable).