[All Adaptavist Apps]

Page tree

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 7 Next »

{import} Macro

Description

This macro 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

{import:SPACEKEY:pagename}

Parameters

Property

Required

Default

Notes

Ver

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

 

flag

(error)

 

The page is imported only if one or more of the specified flags are set. See Working with Flags for more details.

3.3.6

notflag

(error)

 

The page is imported only if none of the specified flags are set. See Working with Flags for more details.

3.3.6

Examples

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

{import:TEST:page}

Hints and Tips

None at present.

Frequently Asked Questions

None at present.

  • No labels