[All Adaptavist Apps]

Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

Description

The with-* macros allow to

Excerpt

render a block of wiki markup in the context of another page

(assuming the user has permissions to access the other page).

For instance, from the current page, you could call the {with-ancestors} macro to search for parent pages (up the page tree) matching the given criteria. The body of the {with-ancestors} macro would then be rendered, in the current page, using the page found by the macro as the context.

By default if several pages match the search parameters, then the with-* macro will use the first page found. For instance, using {with-ancestors:direction=up|label=test} will use the first ancestor page going up the page tree which is labeled 'test'. If needed the block of content can be rendered for each page found by setting searchMode=list (Builder 3.3.2)

The following with-* macros are available:

The macros include variables to refer to the resulting page's ID and title. For example, for the {with-page} macro, these are %withpageid% and %withpagetitle% respectively.

Please use the links above for specific information on each macro.