Access Keys:
Skip to content (Access Key - 0)
Home (Access Key - 1)
All spaces... (Access Key - 3)
Log in (Access Key - 5)
Sign up (Access Key - 6)
Toggle Sidebar

import macro

(None)

{import} Macro

Description

This macro imports the contents of another page into the current page. This macro differs from the regular confluence [USERGUIDE: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
default   the name of the page to import in SPACEKEY:pagename format
pagetitle   Alternative way of specifying the page
spacekey   Alternative way of specifying the space key

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.

Toggle Sidebar

See Also

Incoming Links


Outgoing Links


Added by Alain Moran on Oct 17, 2006 23:02, last edited by Guy Fraser on Jan 30, 2008 13:49
Anonymous

Why an upper case M in Macro for the title of this page? I was looking for it by directly typing the URL and couldn't find it.

Fixed - thanks for bringing that to our attention.


Adaptavist Theme Builder Powered by Atlassian Confluence