Reference library

Article number: 304812

Macros via variable block arguments

Variable blocks can be further extended as they accept passed in arguments.

:::variableblock-coolmacro(arg1,arg2):::

You can then reference the arguments from within the variableblock, e.g.

coolmacro

<ul><li>$1</li><li>$0</li></ul>

This would render as this on the front-end as

<ul><li>arg2</li><li>arg1</li></ul>

There is a limit of 85 characters on the length of the argument values including the name of the variable block that is removed in version 12.

Related questions