Context Macro

The Context macro executes content with another document set as the current document. The most common use case is the need to display content from other pages in the current document but, at the same time, the other document has to handle the links and images. 


{{context document="<documentName>"}}
// Content in XWiki syntax


NameOptionalAllowed valuesDescriptionDefault value
documentNoA stringThe name of the wiki page whose context will be used as the current context (full name or prefixed full name)None


{{context document="xwiki:XWiki.DefaultSkin"}}
#set($obj = $doc.getObject("XWiki.XWikiSkins", 0))
$doc.display("name", $obj)

will display

Default XWiki Skin

Related Pages

Trying to decide between Cloud and On Premise? See the comparison on the XWiki Help Center.

Search this space