Custom Macros

You can use DivePort to define custom macros, which are stored internally in the portaldb.json file. You can customize names, colors, labels, portal or indicator sizes, directories, URLs, or error messages. These macros, or variables, give you an easy way to define and maintain portal-wide settings, and they can be used throughout the portal. If you update the macro, every instance of the macro that is used throughout the portal is also updated.

For example, you can define a macro that defines the text color and use that macro in several portlets. If you change the text color in the macro, the color changes automatically wherever the macro is used in the portal.

Syntax

$(MACRO <macro_name>)

If the name contains one or more spaces, enclose the name in double quotation marks.

Example

$(MACRO "Background Color")

NOTE: If you enclose the entire macro in quotation marks, and a quoted string is inside the macro, you must escape the internal quotes. For example "$(MACRO \"Background Color\")"