= Link to Local Attachments by Number = == Description == This macro 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". }}} == Bugs/Feature Requests == Existing bugs and feature requests for AttachmentNumMacro are [report:9?COMPONENT=AttachmentNumMacro here]. If you have any issues, create a [http://trac-hacks.org/newticket?component=AttachmentNumMacro&owner=martin_s new ticket]. == Download == Download the zipped source from [download:attachmentnummacro/0.11 here]. == Source == You can check out AttachmentNumMacro from [http://trac-hacks.org/svn/attachmentnummacro/0.11 here] using Subversion, or [source:attachmentnummacro/0.11 browse the source] with Trac. == Recent Changes == [[ChangeLog(attachmentnummacro, 3)]] == Author/Contributors == '''Author:''' [wiki:martin_s] [[BR]] '''Contributors:'''