Changes between Version 8 and Version 9 of AttachmentNumMacro


Ignore:
Timestamp:
May 10, 2015, 7:29:57 PM (9 years ago)
Author:
figaro
Comment:

Cosmetic changes

Legend:

Unmodified
Added
Removed
Modified
  • AttachmentNumMacro

    v8 v9  
    11[[PageOutline(2-5,Contents,pullout)]]
    2 = Link to Local Attachments by Number =
    32
    4 == Description ==
     3= Link to Local Attachments by Number
    54
    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
    76
    8 == Configuration ==
    9 Put the following code into your Trac configuration file `trac.ini`:
    10 {{{
    11 #!ini
    12 [components]
    13 tracattachmentnum.* = enabled
     7This plugin allows to link to attachment of the current wiki or ticket by number, which is useful for generic pages.
    148
    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
    2910
    3011Existing bugs and feature requests for AttachmentNumMacro are
     
    3314If you have any issues, create a
    3415[http://trac-hacks.org/newticket?component=AttachmentNumMacro&owner=martin_s new ticket].
     16
     17[[TicketQuery(component=AttachmentNumMacro&group=type,format=progress)]]
    3518
    3619== Download ==
     
    4225You 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.
    4326
     27== Configuration
     28
     29Put the following code into your Trac configuration file `trac.ini`:
     30{{{#!ini
     31[components]
     32tracattachmentnum.* = enabled
     33
     34[attachmentnum]
     35raw = True      # Optional default settings
     36format = 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}}}
    4446
    4547== Recent Changes ==
     
    5052
    5153'''Author:''' [wiki:martin_s] [[BR]]
    52 '''Maintainer:''' [wiki:martin_s] [[BR]]
     54'''Maintainer:''' [[Maintainer]] [[BR]]
    5355'''Contributors:'''