Reference library

Article number: 304812
Last updated: 02 October 2015

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>

Related questions


This article was last updated on 02 October 2015. Did you find it helpful?