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