wiki:IncludeAttachmentMacro

Version 1 (modified by jesrui, 6 years ago) (diff)

New hack IncludeAttachmentMacro, created by jesrui

IncludeAttachment - embed the text of an attachment

Description

This macro embeds the contents of an attachment in a wiki-formated text (e.g. a wiki page or a ticket). The text of the attachment is syntax-highlighted according to its MIME type. Currently only attachments of mime types starting with text/ are accepted.

Examples

Include the attachment named attachment.txt of the MyPage wiki page:

IncludeAttachment(wiki:MyPage:attachment.txt)

Include a source file from a ticket attachment:

IncludeAttachment(ticket:42:somefile.c)

Permissions

The user must have the ATTACHMENT_VIEW on the attachment permission to be able to include it using this macro.

Bugs/Feature Requests

Existing bugs and feature requests for IncludeAttachmentMacro are here.

If you have any issues, create a new ticket.

defect

1 / 1

Download

Download the zipped source from here.

Source

You can check out IncludeAttachmentMacro from here using Subversion, or browse the source with Trac.

Installation

General instructions on installing Trac plugins can be found on the TracPlugins page.

Recent Changes

14768 by jesrui on 2015-06-27 22:02:10
add license

fixes #12419

14767 by jesrui on 2015-06-27 15:55:46
clean up
14766 by jesrui on 2015-06-27 15:34:36
initial commit
(more)

Author/Contributors

Author: jesrui
Maintainer: jesrui
Contributors: