General Actions:
| Include a document which will be rendered in the context of the current document even when editing. |
| Type | Macro (Velocity) |
| Developed by | |
| License | GNU Lesser General Public License 2.1 |
Table of contents
This macro renders the specified XWiki page in the context of the top level including document. If I create a DocumentA with content $doc.getName() then I create a document called DocumentB with content #includeInContext("DocumentA") When I view DocumentB the output will be DocumentB. To render a document in it's own context, use Include Topic Macro instead.
This macro will include the content of another page for viewing. If the user is editing the page in "inline mode", the included page will still be included but it too will be in "inline" edit mode. This differs from the Include In Context Macro which only includes the document when in view mode.
| Name | Optional | Allowed values | Default value | Description |
|---|---|---|---|---|
| pageName | no | a string | none | A page name using the syntax described below |
The pagename parameter may take the following form:
where optional parts are surrounded by brackets