Edgewall Software

Ticket #944 (closed defect: duplicate)

Opened 4 years ago

Last modified 22 months ago

Add support for simpler references to attachments in Wiki pages and Ticket wiki

Reported by: cboos@… Owned by: jonas
Priority: normal Milestone:
Component: wiki system Version: devel
Severity: normal Keywords:
Cc:

Description

Currently, it is possible to refer to attachments, using explicit links, like this:

  • http://projects.edgewall.com/trac/attachment/wiki/<the_wiki_page>/<the_attachment>
  • http://projects.edgewall.com/trac/attachment/ticket/<the_ticket>/<the_attachment>

Adding ?format=raw to the end of the above even allows images to be displayed inline.

IMHO, it is important to present a simpler syntax for the average wiki user.

I propose the following syntax:

  • img:<the_attachment> to get the attached image displayed inline
  • attachment:<the_attachment> to get a link to the attachment

(I set the priority to high because I think that this should go in 0.8: it would be bad to advertise having attachments without a feature like this one)

Attachments

attachment.1073.diff (4.6 kB) - added by cboos@… 4 years ago.
Proposed implementation of the feature

Change History

Changed 4 years ago by cboos@…

Proposed implementation of the feature

Changed 4 years ago by cmlenz

I personally think this comes a bit late for 0.8... but I'll let jonas or daniel decide.

From some point of view every missing feature or bug is critical.

Changed 4 years ago by cboos@…

  • priority changed from high to normal
  • milestone 0.8 deleted

I just thought this would be the logical companion to the attachments feature, but later I realized that the attachments were already a 0.7 feature. So it's not that important if this ticket is resolved for 0.8 or later.

(Actually I don't really care for what goes in 0.8: I always use the bleeding edge trac anyway!)

Changed 4 years ago by cboos@…

Actually, one should be able to refer to any attachments, even non local ones.

Therefore the proposed syntax should be extended. Some ideas:

To me, the usage of '/' seems the best, because it separates clearly the part linking to the reference and the part linking to the attachment, while preserving flexibility (the img (=inline) vs. attachment (=url) distinction, with a default to attachment).

But then, it is still unclear for me if '/' can be part of a WikiName? (#733): HeresTheCurrentBehavior/SlashInWikiName??

Any comments?

Changed 4 years ago by cboos@…

Ok, I checked WikiPageNames: '/' can be part of a Wiki page name.

A reference to an attachment of a Wiki could nevertheless use the following syntax:

as SandBox/img: and SandBox/attachment: can't possibly be part of a valid Wiki page name.

Changed 3 years ago by cboos

  • status changed from new to closed
  • resolution set to duplicate

Duplicate of #753

Add/Change #944 (Add support for simpler references to attachments in Wiki pages and Ticket wiki)

Author



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