Question
Is there a way of including a link in one topic which directly links to an attachment of an other topic? I could of course use the full URL to the attachment (e.g.
http://wiki/twiki/pub/Test/TestTopic/test.pdf) but that's not very nice (or wiki-like).
Thanks for your help!
Environment
--
MartinKaufmann - 14 Dec 2007
Answer
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
The "left part" of the link is available as a TWiki variable
%PUBURL%, which in this topic expands to
https://twiki.org/p/pub. So, you can link to your example attachment like this:
%PUBURL%/Test/TestTopic/test.pdf
To link to an attachment of another topic you'd have to provide web and topic name as well as the name of the attachment anyway, so I think this is almost as easy as can get.
--
HaraldJoerg - 14 Dec 2007
This is documented in
FileAttachments
--
PeterThoeny - 15 Dec 2007
Thanks a lot! I must have missed that.
--
MartinKaufmann - 17 Dec 2007