I want to include the content of a page within another page. I tried to use the Include Macro, but I don’t get it to work.
I created 2 Pages in the wiki’s main directory called “Pages1” and “Page2”. I want to include the content of Page2 into Page1. As I understand the documentation (http://extensions.xwiki.org/xwiki/bin/view/Extension/Include%20Macro) I put in the source of Page1 this:
{{include document=“Page2” reference=“Page2”/}}
What do I do wrong?
I tried around a lot, with paths, etc, but I can’t find a way to do it work.
I’m using xwiki 10.5 on debian.
Thanks for the help!
thank you for your reply. I’m new to xwiki and try to understand how it works.
Do you mean:
{{include document=“Page2.WebHome”/}}
It doesn’t work as well. Could you please provide me the right syntax?
If I try
{{include page=“Page2.WebHome”/}}
I get an Error message:
Failed to execute the [include] macro. Cause: [You must specify a ‘reference’ parameter pointing to the entity to include.]. Click on this message for details.
And yes, the to pages are nested in a page called “START”. What should I do?
UPDATE: It works if the pages are not nested! But, next question, how to use it with nested pages?