User macros are short pieces of code that perform an often-used function or add some custom formatting to a page. People can call the macro into action by adding the macro keyword to their Confluence pages. You can write a 'user macro' by adding code on a screen in the Confluence Administration Console.

Notes:

To add a user macro,

  1. Click 'User Macros' in the left-hand panel.
  2. Click the link on the text 'Click here to create a new User Macro' at the top of the list of macros.
  3. Enter the macro details as explained in the guide to writing user macros.
  4. Click the 'Save' button.

To edit a user macro,

  1. Select 'User Macros' in the left-hand panel. This will list the currently configured user macros.
  2. Click 'Edit' next to the relevant macro.
  3. Update the macro details as explained in the guide to writing user macros.
  4. Click the 'Save' button.

To remove a user macro,

  1. Select 'User Macros' in the left-hand panel. This will list the currently configured user macros.
  2. Click 'Remove' next to the relevant macro.
RELATED TOPICS