cross is now running Foswiki 2.1.3 Beta 1. Please open a task for any issues.
TIP AttachmentUrlShortcutPlugin is not installed on


Gives you the ability to you use shortened syntaxes for links to attachments %A%


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.


Different ways to link the attachment TestAttachement.pdf of this topic
  1. %A{"TestAttachment.pdf"}%
  2. %A{name="TestAttachment.pdf" label="Test attachment"}%
    %A{name="TestAttachment.pdf" label="Test attachment"}%
  3. [[%A{web="System" topic="AttachmentUrlShortcutPlugin"}%TestAttachment.pdf][Test attachment]]
    Test attachment
  4. %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

Plugin Author: Foswiki:Main.EugenMayer
Copyright: © 2009, Collaborganize
License: GPL (GNU General Public License)
Plugin Version: 12 Feb 2009 (V0.4)
Change History:
12 Feb 2009: Simplified default use-case ( you can use %A{"filename.ext"} for linking the file in the current topic ). All other sytanxes are still supported
07 Jan 2009: * You can now choose the MacroName to fit your own needs
Changed the name / label systax to be conform with AttachLinkPlugin
11 Dez 2008: Renewed plugin for Foswiki
01 Dez 2007: Initial version for TWiki
Foswiki Dependency:  
CPAN Dependencies:  
Other Dependencies:  
Perl Version: 5.005
Plugin Home:
Related Topic:

-- Foswiki:Main/EugenMayer - 11 Dez 2008
Topic revision: r9 - 06 May 2009, ArthurClemens - This page was cached on 20 Jan 2017 - 15:26.

The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License