Edgewall Software

Opened 16 years ago

Closed 15 years ago

#753 closed enhancement (fixed)

Add support for a Wiki syntax to reference attachments

Reported by: katana@… Owned by: Christian Boos
Priority: normal Milestone: 0.9
Component: wiki system Version: 0.7.1
Severity: normal Keywords: attachments, wiki, link
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:


As far as I know there is currently no way to reference an attachment using Wiki syntax. It would be quite handy since attachments are linked to the whole ticket and not to a specific comment.

I don't really have an idea at hand for a proper syntax but I'm sure someone would come up with something :)

Attachments (0)

Change History (5)

comment:1 by daniel, 16 years ago

Milestone: 0.9

comment:2 by cboos@…, 16 years ago

See #944 for a proposed implementation (with patch).

comment:3 by Christian Boos, 15 years ago

Owner: changed from Jonas Borgström to Christian Boos
Severity: normalenhancement
Status: newassigned

I'll integrate this in the InterTrac related refactoring of the Wiki formatter.

The syntax I propose is:

  • attachment:test.png — link to the attachment page for that file
  • image:test.png — simple inlining of the referenced image
    Will be equivalent to the [[Image(attachment:test.png)]] macro call.
  • attachment:attachment.1073.diff:#944 — link to the attachment page for the attachment.1073.diff file attached to the ticket #944

comment:4 by Christopher Lenz, 15 years ago

Summary: Add support for a WiKi syntax to reference attachmentsAdd support for a Wiki syntax to reference attachments

I'd prefer not adding a link namespace for inlining images, but rather leave that to the [[Image()]] macro. Links should be links.

On a related note, I'd also like to deprecate the special handling of links with common image file extension names in 0.9.

comment:5 by Christian Boos, 15 years ago

Resolution: fixed
Status: assignedclosed

I implemented the attachment: link syntax in [1868], and dropped the support for image: links. This will be left to the [[Image()]] macro.

Also, we need to define a proper way to know the source object when processing wiki text… The current way is to rely on the formatter.req.path_info information, which is not optimal.

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain Christian Boos.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Christian Boos to the specified user.

Add Comment

E-mail address and name can be saved in the Preferences .
Note: See TracTickets for help on using tickets.