Macros
As described in the content flow, Jahia also has a macro mechanism, which makes it possible to insert markers in pages (even in free text field) that will be dynamically replaced with the corresponding values. This is useful if you want to use a macro to insert a user’s name, or anything you might think of. Macros may be defined in modules as JSR-223 script files responding to a specific syntax (such as {getConstant} or {username}), and Jahia also offers a few default macros such as:
-
Constants stored in a node property display
-
Form token generation, in order to prevent multiple submissions of the same form
-
Display the current user name

