Changes between Version 8 and Version 9 of AttachmentNumMacro
- Timestamp:
- May 10, 2015, 7:29:57 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
AttachmentNumMacro
v8 v9 1 1 [[PageOutline(2-5,Contents,pullout)]] 2 = Link to Local Attachments by Number =3 2 4 = = Description ==3 = Link to Local Attachments by Number 5 4 6 This macro allows to link to attachment of the current wiki or ticket by number, which is useful for generic pages, etc. 5 == Description 7 6 8 == Configuration == 9 Put the following code into your Trac configuration file `trac.ini`: 10 {{{ 11 #!ini 12 [components] 13 tracattachmentnum.* = enabled 7 This plugin allows to link to attachment of the current wiki or ticket by number, which is useful for generic pages. 14 8 15 [attachmentnum] 16 raw = True # Optional default settings 17 format = short # ATM format is only 'short' or 'long' (default) 18 }}} 19 20 == Example == 21 22 {{{ 23 [[AttachmentNum(1)]] # First attachment, result: "attachment:'first.doc'". 24 [[AttachmentNum(1,raw=True)]] # First attachment (raw link), result: "raw-attachment:'first.doc'". 25 [[AttachmentNum(1,format=short)]] # First attachment, hyper-linked filename is printed only, result: "first.doc". 26 }}} 27 28 == Bugs/Feature Requests == 9 == Bugs/Feature Requests 29 10 30 11 Existing bugs and feature requests for AttachmentNumMacro are … … 33 14 If you have any issues, create a 34 15 [http://trac-hacks.org/newticket?component=AttachmentNumMacro&owner=martin_s new ticket]. 16 17 [[TicketQuery(component=AttachmentNumMacro&group=type,format=progress)]] 35 18 36 19 == Download == … … 42 25 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. 43 26 27 == Configuration 28 29 Put the following code into your Trac configuration file `trac.ini`: 30 {{{#!ini 31 [components] 32 tracattachmentnum.* = enabled 33 34 [attachmentnum] 35 raw = True # Optional default settings 36 format = short # ATM format is only 'short' or 'long' (default) 37 }}} 38 39 == Example 40 41 {{{ 42 [[AttachmentNum(1)]] # First attachment, result: "attachment:'first.doc'". 43 [[AttachmentNum(1,raw=True)]] # First attachment (raw link), result: "raw-attachment:'first.doc'". 44 [[AttachmentNum(1,format=short)]] # First attachment, hyper-linked filename is printed only, result: "first.doc". 45 }}} 44 46 45 47 == Recent Changes == … … 50 52 51 53 '''Author:''' [wiki:martin_s] [[BR]] 52 '''Maintainer:''' [ wiki:martin_s] [[BR]]54 '''Maintainer:''' [[Maintainer]] [[BR]] 53 55 '''Contributors:'''