Skip to end of metadata
Go to start of metadata

The real power of dynamic content in Confluence stems from using macros.

  • A macro is denoted by putting it's name in braces ({name}).
  • If parameters follow behind the name, there is one colon ":" separating the parameters from the name of the macro.
    • Arguments to parameters are separated by an equal sign "="
  • If several parameters are listed, they are separated by a pipe "|"
  • Some macros have body text, some don't
    • If there is text worked on by the macro, it's ended by writing the macro name, without parameters, again
  • Macros can be added to the system by plugins.

The list of macros is long, the parameters are sometimes complicated. A full list of installed macros is available in the "full guide" notation help.

Most usefull macros to start with, are:

  • toc: renders a table of content as seen in 07520. Using headers and table of content
  • children: renders a list of child pages of the current one
  • attachments: renders a list of attached documents of the current page
  • panel: makes a nice box to distinguish it's content from the rest of the page
  • info, warning, tip, note: coloured box to give visually appealing additional information
  • chart: draws dynamic graphs from tables
  • blog-posts: lists news/blog posts
  • gallery: presents attached images (see 07550. Images) as a slideshow

Example:

 {section}
 {column:width=50%}
 {panel:title=Table of Content|borderStyle=solid}
 {toc}
 {panel}
 {column}
 {column:width=50%}
 {column}
 {section}

 h1. All children
 {children}

renders:

Table of Content

All children

  • No labels