TIP AttachmentUrlShortcutPlugin is not installed on Foswiki.org.

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
  1. %A{"TestAttachment.pdf"}%
    %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 www.collaborganize.com
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: http://foswiki.org/Extensions/AttachmentUrlShortcutPlugin
Feedback: http://foswiki.org/Extensions/AttachmentUrlShortcutPluginDev
Appraisal: http://foswiki.org/Extensions/AttachmentUrlShortcutPluginAppraisal
Related Topic:

-- Foswiki:Main/EugenMayer - 11 Dez 2008
Topic revision: r9 - 06 May 2009, ArthurClemens - This page was cached on 26 May 2016 - 14:48.

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