23 | | * Changesets: '''!r1''', '''![1]''', '''!changeset:1''' or (restricted) '''![1/trunk]''', '''!changeset:1/trunk''' |
24 | | * Revision log: '''!r1:3''', '''![1:3]''' or '''!log:@1:3''', '''!log:trunk@1:3''', '''![2:5/trunk]''' |
25 | | * Diffs (requires [trac:milestone:0.10 0.10]): '''!diff:@1:3''', '''!diff:tags/trac-0.9.2/wiki-default//tags/trac-0.9.3/wiki-default''' or '''!diff:trunk/trac@3538//sandbox/vc-refactoring@3539''' |
| 23 | * Changesets: '''!r1''', '''![1]''', '''!changeset:1''' or (restricted) '''![1/trunk]''', '''!changeset:1/trunk''', '''![2:5/trunk]''' |
| 24 | * Revision log: '''!r1:3''', '''![1:3]''' or '''!log:@1:3''', '''!log:trunk@1:3''' |
| 25 | * Diffs (requires [milestone:0.10 0.10]): '''!diff:@1:3''', '''!diff:tags/trac-0.9.2/wiki-default//tags/trac-0.9.3/wiki-default''' or '''!diff:trunk/trac@3538//sandbox/vc-refactoring@3539''' |
38 | | * Changesets: r1, [1], changeset:1 or (restricted) [1/trunk], changeset:1/trunk |
39 | | * Revision log: r1:3, [1:3] or log:@1:3, log:trunk@1:3, [2:5/trunk] |
40 | | * Diffs (requires [milestone:0.10 0.10]): diff:@1:3, diff:tags/trac-0.9.2/wiki-default//tags/trac-0.9.3/wiki-default or diff:trunk/trac@3538//sandbox/vc-refactoring@3539 |
| 37 | * Changesets: r1, [1], changeset:1, or (restricted) [1/trunk], changeset:1/trunk, [2:5/trunk] |
| 38 | * Revision log: r1:3, [1:3] or log:@1:3, log:trunk@1:3 |
| 39 | * Diffs (requires [milestone:0.10 0.10]): diff:@20:30, diff:tags/trac-0.9.2/wiki-default//tags/trac-0.9.3/wiki-default or diff:trunk/trac@3538//sandbox/vc-refactoring/trac@3539 |
189 | | * !attachment:the_file.txt:wiki:MyPage creates a link to the attachment the_file.txt of the !MyPage wiki page |
190 | | * !attachment:the_file.txt:ticket:753 creates a link to the attachment the_file.txt of the ticket 753 |
191 | | |
192 | | Note that the older way, putting the filename at the end, is still supported: !attachment:ticket:753:the_file.txt. |
193 | | |
194 | | If you'd like to create a direct link to the content of the attached file instead of a link to the attachment page, simply use `raw-attachment:` instead of `attachment:`. |
195 | | |
196 | | This can be useful for pointing directly to an HTML document, for example. Note that for this use case, you'd have to allow the web browser to render the content by setting `[attachment] render_unsafe_content = yes` (see TracIni#attachment-section). Caveat: only do that in environments for which you're 100% confident you can trust the people who are able to attach files, as otherwise this would open up your site to [wikipedia:Cross-site_scripting cross-site scripting] attacks. |
197 | | |
198 | | See also [#export:links]. |
199 | | |
200 | | === comment: links === |
201 | | |
202 | | When you're inside a given tickets, you can simply write e.g. !comment:3 to link to the third change comment. |
203 | | It's also possible to link to a comment of a specific ticket from anywhere using one of the following syntax: |
204 | | - !comment:3:ticket:123 |
205 | | - !ticket:123#comment:3 (note that you can't write !#123#!comment:3!) |
| 187 | * !attachment:wiki:MyPage:the_file.txt creates a link to the attachment the_file.txt of the !MyPage wiki page |
| 188 | * !attachment:ticket:753:the_file.txt creates a link to the attachment the_file.txt of the ticket 753 |
265 | | This can be very useful for displaying XML or HTML documentation with correct stylesheets and images, in case that has been checked in into the repository. Note that for this use case, you'd have to allow the web browser to render the content by setting `[browser] render_unsafe_content = yes` (see TracIni#browser-section), otherwise Trac will force the files to be downloaded as attachments for security concerns. |
266 | | |
267 | | If the path is to a directory in the repository instead of a specific file, the source browser will be used to display the directory (identical to the result of `source:/some/dir`). |
| 248 | This can be very useful for displaying HTML documentation with correct stylesheets and images, in case that has been checked in the repository. |
| 249 | |
| 250 | If the path is to a directory in the repository instead of a specific file, the source browser will be used to display the directory (identical to the result of `source:/some/dir`. |