Ad Widget

Collapse

Can a Macro bet used in a widget Name?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mowat
    Junior Member
    • Apr 2023
    • 2

    #1

    Can a Macro bet used in a widget Name?

    Looking to use a global macro in the name of a widget. But it doesn't seem to be expanding it. Is this even possible ?

    Tried
    {macro.name}
    {$macro.name}

    Both single and double quotes

    Any help would be appreciated.
  • cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4807

    #2
    Macros are in capital letters.
    Macro Macro name. The name must be wrapped in curly brackets and start with a dollar sign.
    Example: {$FRONTEND_URL}. The following characters are allowed in the macro names: A-Z (uppercase only) , 0-9 , _ , .

    Where you can use usermacros you can find here...

    If you don't see "widget name field" there... then you cannot use it there...

    Comment

    • mowat
      Junior Member
      • Apr 2023
      • 2

      #3
      Originally posted by cyber
      Macros are in capital letters.
      Macro Macro name. The name must be wrapped in curly brackets and start with a dollar sign.
      Example: {$FRONTEND_URL}. The following characters are allowed in the macro names: A-Z (uppercase only) , 0-9 , _ , .

      Where you can use usermacros you can find here...

      If you don't see "widget name field" there... then you cannot use it there...
      Apologies for the misspelling of the post title.It wouldn't let me edit it. I'm blaming autocorrect.

      According to that document in a web scenario the name is used. I will modify the Macro to uppercase and check thanks for the info.

      Comment

      Working...