Vincent,
Thank you for your suggestion, I have actually tried a different method to
get it working. Instead of defining the image in the original document as
{image:someimage.PNG} I have given the macro the documents name i.e.
{image:someimage.PNG|document=Main.SomeDocument}. This means that the images
appear when I now view them in the new page by sections.
Is there any way to make the WYSIWYG Image tool insert all images in the
second format?
Regards,
Brian
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
Vincent Massol
Sent: 05 August 2008 21:43
To: XWiki Users
Subject: Re: [xwiki-users] Attach files
Hi Brian,
On Aug 5, 2008, at 10:41 AM, Brian Burns wrote:
> Hi guys,
>
>
>
> I am using some code to view selected sections from one wiki page in
> another
> results page. However, if the sections have an image the image is not
> displayed in the new image. I assume this is because it looks for an
> attachment on the new page. In order to fix this my stop gap
> solution is to
> temporarily attach all other attachments to the page.
>
>
>
> 1) I can generate a list of attachments which I loop through
> using
> #foreach($attachment in $attachments), could someone please tell me
> how to
> attach the $attachment to the current document?
>
> 2) Can anyone suggest a better solution than this? My problem
> is that
> this solution would probably work for now but it simply won't be
> scalable
> when there are many other documents with many other attachments.
Just use the attach macro and pass to it the name of the document
containing the attachments. Check the documentation for the attach
macro on code.xwiki.org for more details.
Thanks
-Vincent
_______________________________________________
users mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________
users mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/users