Edgewall Software

Ticket #753 (closed enhancement: fixed)

Opened 4 years ago

Last modified 3 years ago

Add support for a Wiki syntax to reference attachments

Reported by: katana@… Owned by: cboos
Priority: normal Milestone: 0.9
Component: wiki system Version: 0.7.1
Severity: normal Keywords: attachments,wiki,link
Cc:

Description

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

Change History

Changed 4 years ago by daniel

  • milestone set to 0.9

Changed 4 years ago by cboos@…

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

Changed 3 years ago by cboos

  • owner changed from jonas to cboos
  • status changed from new to assigned
  • severity changed from normal to enhancement

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

Changed 3 years ago by cmlenz

  • summary changed from Add support for a WiKi syntax to reference attachments to Add 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.

Changed 3 years ago by cboos

  • status changed from assigned to closed
  • resolution set to fixed

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.

Add/Change #753 (Add support for a Wiki syntax to reference attachments)

Author



Change Properties
<Author field>
Action
as closed
Next status will be 'reopened'
 
Note: See TracTickets for help on using tickets.