Changes between Version 1 and Version 2 of AttachmentNumMacro


Ignore:
Timestamp:
Nov 12, 2008 2:45:02 PM (6 years ago)
Author:
martin_s
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • AttachmentNumMacro

    v1 v2  
    55This macro allows to link to attachment of the current wiki or ticket by number, which is useful for generic pages etc. 
    66 
    7 = Configuration = 
     7== Configuration == 
    88Put the following code into your Trac configuration file `trac.ini`: 
    99{{{ 
     
    3939 
    4040{{{ 
    41 [[AttachmentNum(1)]]  # First attachment, result: "attachment:'first.doc'". 
    42 [[AttachmentNum(1,raw=True)]]  # First attachment (raw link), result: raw-attachment:'first.doc'. 
    43 [[AttachmentNum(1,format=short)]]  # First attachment, hyper-linked filename is printed only, result: "first.doc". 
     41[[AttachmentNum(1)]]                # First attachment, result: "attachment:'first.doc'". 
     42[[AttachmentNum(1,raw=True)]]       # First attachment (raw link), result: "raw-attachment:'first.doc'". 
     43[[AttachmentNum(1,format=short)]]   # First attachment, hyper-linked filename is printed only, result: "first.doc". 
    4444}}} 
    4545