SID-00096: Link to attached files
| Status: |
Answered |
TWiki version: |
|
Perl version: |
|
| Category: |
CategoryAttachments |
Server OS: |
|
Last update: |
17 years ago |
Hello, I linked to an attached file in a different web by typing: %PUBURL%/OtherWeb/OtherTopic/file.txt, which gives me the link:
http://OtherWeb/OtherTopic/file.txt
.
Is there any way to rename this link?
Thank you!
--
JenTsien - 12 Feb 2009
Discussion and Answer
Something seems to be odd with your TWiki configuration.
%PUBURL% should contain a protocol, domain name and path. It should expand to the root of all your TWiki attachments, such as
http://www.example.com/twiki/pub. Run configure and check the the {PubUrlPath}, {PubDir} and {DefaultUrlHost} settings.
Details on file attachments at
FileAttachments.
--
PeterThoeny - 12 Feb 2009
Sorry for the confusion, it actually does give me something like
http://www.example.com/twiki/pub. I was just wondering about renaming the link TWiki automatically generates.
--
JenTsien - 13 Feb 2009
You can give a link any label you want, such as
[[%PUBURL%/OtherWeb/OtherTopic/file.txt][any link label for my file.txt]]
--
PeterThoeny - 13 Feb 2009
Thanks!
--
JenTsien - 16 Feb 2009
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.