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 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

Change status to:
Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r4 - 2007-12-17 - MartinKaufmann
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.