Include External Content
Last modified by Manuel Leduc on 2026/06/02 17:54
| Shows to include external content in your wiki page |
| Type | Snippet |
| Category | |
| Developed by | |
| Rating | |
| License | GNU Lesser General Public License 2.1 |
Table of contents
Description
There are various solutions depending on the external system you're connecting to.
- Solution 1: Use the getURLContent API. For example (you can also check the External Pretty Code example):
{{velocity}} $xwiki.getURLContent('http://localhost:8080/xwiki/bin/get/Sandbox/WebHome?outputSyntax=xwiki&outputVersion=2.1') {{/velocity}} - Solution 2: Use your external system's REST API. XWiki offers a REST API.