Tags:
create new tag
, view all tags

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

TWiki version: TWikiRelease04x01x02
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: Debian Etch 2.6.18-4-486
Web server: Apache 2.2.3
Perl version: 5.8.8
Client OS: Windows XP
Web Browser: Firefox 2 & IE 6
Categories: Deployment

-- MartinKaufmann - 14 Dec 2007

Answer

ALERT! If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list below the edit box.

The "left part" of the link is available as a TWiki variable %PUBURL%, which in this topic expands to http://www.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

 
Change status to:
Topic revision: r4 - 2007-12-17 - MartinKaufmann
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.