Opened 20 years ago
Closed 19 years ago
#753 closed enhancement (fixed)
Add support for a Wiki syntax to reference attachments
Reported by: | 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: |
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 (0)
Change History (5)
comment:1 by , 20 years ago
Milestone: | → 0.9 |
---|
comment:2 by , 20 years ago
comment:3 by , 20 years ago
Owner: | changed from | to
---|---|
Severity: | normal → enhancement |
Status: | new → 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 fileimage: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 theattachment.1073.diff
file attached to the ticket #944
comment:4 by , 20 years ago
Summary: | Add support for a WiKi syntax to reference attachments → 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 by , 19 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → 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.
See #944 for a proposed implementation (with patch).