[Index]

Model: data/StaticVariable

Custom Variables

Full HTML Help

System administrators can create custom macros for use in for example custom Configuration Templates.

Note

  1. Choose Advanced Tools > Custom Variables and click Add.
  2. Enter the macro name, optional description and value. The name must be prefixed with CV_. For details on macro syntax, refer to the "Advanced Configuration Guide".
  3. Click Save.

To test the macro, enter it in the macro evaluator at Administration Tools > Macro Evaluator.

Example

Create:

CV_current_time

Current time is: {{ fn.now }}

Invoke:

{{ macro.CV_current_time }}

Output example:

Current time is: 2017-03-31 13:20:18.509871

Data model to manage static variables.

Model Details: data/StaticVariable

Title Description Details
Custom Variable Name * The name of the static variable. The variable name must be prefixed by CV_.
  • Field Name: name
  • Type: String
  • Pattern: ^CV_[a-zA-Z0-9_-]+$
Description A useful description of the defined static variable.
  • Field Name: description
  • Type: String
Value * Enter a value to be assigned to the static variable name.
  • Field Name: value
  • Type: String