AttachmentUrlShortcutPlugin
Gives you the ability to you use shortened syntaxes for links to attachments %A%
Usage
Hint: You can choose the
Macro-Name, whi should be used for the attachment-shortcut, so e.g. like in
AttachLinkPlugin, you can use ATTACHMENT instead A
Use the macro %A%
or the one you configured in the Configuration-System under AttachmentUrlShortcutPlugin to create a link to an attachement:
Parameter (both working, but only use one) |
Default |
Description |
web or Bereich |
Current web |
Sets the web of the topic, where the attachment is attached to |
topic or Dokument |
Current topic |
Sets the topic name, where the attachment is attached to |
name or Anhang or default (%A{"file"}% ) |
required |
Sets the name of the attachment. It must match the filename! |
Label or Name_ |
name |
Optional to set the name of the link. If its not set, _file is used as name |
If you use file to define the file to attache to, the link is create automatically, so you dont need to use braces
[[]] like in example 1.
Examples
Different ways to link the attachment TestAttachement.pdf of this topic
-
%A{"TestAttachment.pdf"}%
%A{"TestAttachment.pdf"}%
-
%A{name="TestAttachment.pdf" label="Test attachment"}%
%A{name="TestAttachment.pdf" label="Test attachment"}%
-
[[%A{web="System" topic="AttachmentUrlShortcutPlugin"}%TestAttachment.pdf][Test attachment]]
Test attachment
-
%A{web="System" topic="AttachmentUrlShortcutPlugin" name="TestAttachment.pdf" label="Test attachment"}%
%A{web="System" topic="AttachmentUrlShortcutPlugin" file="TestAttachment.pdf" name="Test attachment"}%
Plugin Installation Instructions
Note: You do not need to install anything on the browser to use this Plugin. The following instructions are for the administrator who installs the Plugin on the server where Foswiki is running.
Installation instructions
- just use the installer attached to the topic or even easier, use the configure-system/Extension to easy install it trough an user-interface
Related Topic:
-- Foswiki:Main/EugenMayer - 11 Dez 2008