Link local attachments by number with the Trac Macro. This software allows for easy and efficient linking to attachments within your Trac system. Improve your workflow today.
To set up this macro, simply add the following code to 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)
Once enabled, users can easily link to attachments using the AttachmentNum() function. For example, AttachmentNum(1) will link to the first attachment, displaying the attachment name as "attachment:'first.doc'". Users can also customize the appearance of the link by adding additional parameters, such as raw=True to display the attachment as a raw link or format=short to display only the filename as a hyperlink.
In summary, TracAttachmentNumMacro is a handy tool for simplifying attachment linking in Trac. With its easy configuration and customizable parameters, this macro is sure to be a useful addition to any Trac user's toolkit.
Version 0.6.7025: N/A