IncludeForm Macro
This is a Velocity macro, bundled with all the XWiki products by default.
Macro developed by the XWiki Development Team.
This macro cannot currently be downloaded separately.
Macro developed by the XWiki Development Team.
This macro cannot currently be downloaded separately.
IncludeForm Macro
Renders the specified XWiki page in the context of the top level including document and surrounded by {pre}{/pre} tags to avoid further rendering of XWiki syntax by the including document. This macro is meant to include class sheets pages, i.e. pages displaying content of a Form in view mode and displaying the Form in edit mode.Usage
#includeForm($pageName)
Parameters definition
| Name | Optional | Allowed values | Default value | Description |
|---|---|---|---|---|
| pageName | no | a string | none | A page name using the syntax described below |
[wiki:][space.]page
- If wiki is present, the space and page parts will refer to a document in the specified wiki in the context of an XWiki farm.
- If space is present, then it will be used as part of the full page name, otherwise the space name of the enclosing document will be used
Example
This macro may be used to display an XWiki page within another one. It is needed, for example, when the current page has associated object instances and the page to be included does something generic with object data of that kind. For instance, this page itself contains an instance of the Macro Class XWiki Class which contains the content for the different parts of a macro description (Macro Type, Created By, Download page, etc. The wiki content of this page is simply:#includeForm("XWiki.MacroClassSheet")