Version 12 (modified by 8 years ago) (diff) | ,
---|
Contents
Link to Local Attachments by Number
Description
This plugin allows you to link to an attachment of the current wiki or a ticket by number. This is useful for generic pages. See below for examples.
Bugs/Feature Requests
Existing bugs and feature requests for AttachmentNumMacro are here.
If you have any issues, create a new ticket.
defect |
1 / 1 |
---|
Download
Download the zipped source from here.
Source
You can check out AttachmentNumMacro from here using Subversion, or browse the source with Trac.
There is also a version on PyPi.
Installation
General instructions on installing Trac plugins can be found on the TracPlugins page.
Configuration
Put the following code into your Trac configuration file trac.ini
:
[components] tracattachmentnum.* = enabled [attachmentnum] raw = True # Optional default settings format = short # ATM format is only 'short' or 'long' (default)
Example
[[AttachmentNum(1)]] # First attachment, result: "attachment:'first.doc'". [[AttachmentNum(1, raw=True)]] # First attachment (raw link), result: "raw-attachment:'first.doc'". [[AttachmentNum(1, format=short)]] # First attachment, hyper-linked filename is printed only, result: "first.doc".
Recent Changes
- 17134 by rjollos on 2018-04-16 19:39:49
-
TracAttachmentNumMacro 0.8: Conform to PEP8
- 15264 by rjollos on 2016-02-11 04:22:34
-
Remove unnecessary svn:mime-type on py files
svn:mime-type was set to "plain" for many files.
- 8542 by martin_s on 2010-08-30 21:57:24
-
Added encoding meta-comment and declared SVN keywords as unicode to avoid issues with non-english locales.
(more)
Author/Contributors
Author: martin_s
Maintainer: Martin Scharrer
Contributors: