How to specify an attachment?
Adrian Hall
ahall at mirapoint.com
Thu Jul 6 15:28:03 CEST 2006
I'm trying to put a link in my document that links to an attachment. I
thought it was this way:
* [File 1>$xwiki.getAttachmentURL("Main.Thispage", "file1.pdf"]
But, when I actually do this (on 0.9.840), I get this link:
/xwiki/bin/edit/%2Fxwiki%2Fbin%2Fdownload%2FMain%2FThispage%2Ffile1/pdf?pare
nt=Main.Thispage
Which doesn't look like an attachment URL.
1) Is getAttachmentURL() just broken, or am I mis-interpreting it's
function (since there is no javadoc for it)
2) How do I get the URL to an attachment on the same page when I want to
link to it but give it a different link name?
Thanks,
-Adrian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.xwiki.org/pipermail/users/attachments/20060706/5cb796dd/attachment-0001.html
More information about the users
mailing list