Feature #543

Wiki links to versions, documents, files

Added by Adrian Tarau over 11 years ago. Updated about 6 years ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:Text formatting
Target version:-
Resolution:Fixed

Description

It would be very useful to be able to insert links to roadmap(versions), documents and files. The syntax should be very
simple, similar with issue links or changeset links.

Thanks.


Related issues

Related to Redmine - Feature #2069: Wiki syntax to link to files in the files-module New 2008-10-22

History

#1 Updated by Jean-Philippe Lang over 11 years ago

Committed in r1064.

#2 Updated by Adrian Tarau over 11 years ago

+1 JP.

Thanks.

#3 Updated by Jean-Philippe Lang over 11 years ago

Here are some examples that work on my working copy.
Feedback is welcome before I commit.

Documents:
document#17 -> Link to document with id 17
document:Greetings -> Link to the document with title
"Greetings"
document:"Some document" -> Link to the
document with title "Some document"
Versions:
version#3 -> Link to version with id 3
version:1.0.0 -> Link to version named
"1.0.0"
version:"1.0 beta 2" -> Link to version
named "1.0 beta 2"
Attachments:
attachment:file.zip -> Link to the attachment of
the current object named file.zip

Basically, # is used to reference objects with their ids, : is
used to reference objects with their names.

For now, attachments of the current object can be referenced
only (if you're on an issue, you can only reference attachments
of this issue).
This kind of syntax should be supported in the future:
document#1:attachment:file.zip

#4 Updated by Thomas Löber over 11 years ago

It would be nice if a plugin can add extra wiki syntax like:

Redmine::Plugin.register :my_plugin do
wiki /some_regexp/ do # create HTML chunk replacing regexp
end
end

#5 Updated by Jean-Philippe Lang over 11 years ago

I think Redmine could support both syntaxes (with ids or with
names).

#6 Updated by Adrian Tarau over 11 years ago

Looks ok to me.

I think the layout with keyword#no is better and it will be
similar with what exists now.

Any opinions?

#7 Updated by Jean-Philippe Lang over 11 years ago

Here are some suggestions for the syntax:

document#12 (by id) or document:"My document"
(by title)
0.7.3 or version:"0.6.3"
file#47

What do you think ?

#8 Updated by Toshi MARUYAMA about 8 years ago

  • Category set to Text formatting

#10 Updated by Andriy Lesyuk over 6 years ago

Hi! I added file: support to my WikiNG plugin.

#11 Updated by Mischa The Evil about 6 years ago

  • Subject changed from Wiki links to roadmap, documents, files to Wiki links to versions, documents, files
  • Status changed from New to Closed
  • Resolution set to Fixed

Adrian Tarau wrote:

It would be very useful to be able to insert links to roadmap(versions), documents and files.

Support for linking to versions and documents is implemented already a long time ago. Only linking to files is still missing, but there exists a seperate issue for it (#2069).
Based on the info above; closing this issue as fixed.

Also available in: Atom PDF