[xwiki-users] include page tag breaks links
Hello, I noticed that when including pages with the include tag, the links to eg images are broken contained in the included pages if not referenced by the full wiki path (eg [email protected]). Thus it would be nice for the wysiwyg-editor as well as the XWord plugin to always make a full reference to the linked object when linking. Greetings, Andreas -- View this message in context: http://xwiki.475771.n2.nabble.com/include-page-tag-breaks-links-tp5367705p53... Sent from the XWiki- Users mailing list archive at Nabble.com.
On 08/03/2010 12:20 PM, afra wrote:
Hello, I noticed that when including pages with the include tag, the links to eg images are broken contained in the included pages if not referenced by the full wiki path (eg [email protected]). Thus it would be nice for the wysiwyg-editor as well as the XWord plugin to always make a full reference to the linked object when linking. Greetings, Andreas
I think you should use the include like this: {{include document="Space.Page" context="new" /}} Without context=new, the page is included "in context", which uses the includer document as the context, thus the place where non-prefixed images are searched. -- Sergiu Dumitriu http://purl.org/net/sergiu/
Hi Sergiu, unfortunately your advice did not help me. To make it a bit clearer I did the following. In the Sandbox.WebHome I added the following: {{include document="Test" /}} {{include document="Sandbox.Test" context="new" /}} And my Sandbox.Test looks like this: [[image:96715.strip.gif]] With this configuration I still get the images on Space.WebHome shown as broken/missing. If I change my Sandbox.Test to: [[image:[email protected]]] then the images of the included docs are shown correctly in Sandbox.WebHome Did I miss something? Greetings, Andreas -- View this message in context: http://xwiki.475771.n2.nabble.com/include-page-tag-breaks-links-tp5367705p53... Sent from the XWiki- Users mailing list archive at Nabble.com.
participants (2)
-
afra -
Sergiu Dumitriu