Edgewall Software
Modify

Ticket #753 (closed enhancement: fixed)

Opened 7 years ago

Last modified 7 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:
Release Notes:
API Changes:

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

comment:1 Changed 7 years ago by daniel

  • Milestone set to 0.9

comment:2 Changed 7 years ago by cboos@…

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

comment:3 Changed 7 years ago by cboos

  • Owner changed from jonas to cboos
  • Severity changed from normal to enhancement
  • Status changed from new to assigned

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 Changed 7 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.

comment:5 Changed 7 years ago by cboos

  • Resolution set to fixed
  • Status changed from assigned to closed

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.

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
to The owner will be changed from cboos. Next status will be 'closed'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.