[[PageOutline(2-5,Contents,pullout)]] = 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. As an 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 [/newticket?component=AttachmentNumMacro new ticket]. [[TicketQuery(component=AttachmentNumMacro&group=type,format=progress)]] == Download Download the zipped source from [export:attachmentnummacro/0.11 here]. The plugin is also available on [pypi:TracAttachmentNumMacro PyPI]. == Source You can check out AttachmentNumMacro from [/svn/attachmentnummacro/0.11 here] using Subversion, or [source:attachmentnummacro/0.11 browse the source] with Trac. == Installation General instructions on installing Trac plugins can be found on the [TracPlugins#InstallingaTracplugin TracPlugins] page. == Configuration Put the following code into your Trac configuration file `trac.ini`: {{{#!ini [components] tracattachmentnum.* = enabled [attachmentnum] raw = True # optional default settings format = short # format is 'short' or 'long' (default) }}} == Recent Changes [[ChangeLog(attachmentnummacro, 3)]] == Author/Contributors '''Author:''' [wiki:martin_s] [[BR]] '''Maintainer:''' [[Maintainer]] [[BR]] '''Contributors:'''