[All Adaptavist Apps]

Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

{import} Macro

Description

This macro

Excerpt

imports the contents of another page into the current page

. This macro differs from the regular confluence include macro in that the content is rendered in the context of the current page rather than the source page.

This subtle difference is particularly useful when you want to store re-usable chunks of menu items on a page - because those menu items may have specific privilege requirements depending on where they are used, they needed to be rendered in the context of the current page in order to always show the correct values and links.

Usage

Code Block
{import:SPACEKEY:pagename}

Parameters

Property

Required

Default

Notes

default

(tick)

 

the name of the page to import in SPACEKEY:pagename format

pagetitle

(tick)

 

Alternative way of specifying the page

spacekey

(tick)

 

Alternative way of specifying the space key

Examples

Simply add the macro any page or panel to import the contents of another page:

Code Block
{import:TEST:page}

Hints and Tips

None at present.

Frequently Asked Questions

None at present.