TracAttachmentNumMacro 0.6.7025

Trac Macro to link to local attachments by number

  Add it to your Download Basket!

 Add it to your Watch List!

0/5

Rate it!
send us
an update
LICENSE TYPE:
GPL v3 
USER RATING:
UNRATED
  0.0/5
DEVELOPED BY:
Martin Scharrer
HOMEPAGE:
www.trac-hacks.org
CATEGORY:
ROOT \ Internet \ HTTP (WWW)
TracAttachmentNumMacro is a Trac macro that allows to link to attachment of the current wiki or ticket by number, which is useful for generic pages etc.

Configuration:

Put the following code into your Trac configuration file trac.ini:

[components]
tracattachmentnum.* = enabled

[attachmentnum]
# Optional default settings
raw = True
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".

Last updated on November 4th, 2009

requirements

#local attachments #Trac macro #Trac #attachments #link #macro

Add your review!

SUBMIT