Modify

Opened 18 years ago

Closed 12 years ago

#544 closed enhancement (wontfix)

Aliasing other trac links

Reported by: Guardian Owned by: Shun-ichi Goto
Priority: normal Component: GeneralLinkSyntaxPlugin
Severity: normal Keywords: alias aliasing traclink
Cc: Trac Release: 0.9

Description

Would it be possible to use this plugin to alias other trac links ???

In the absence of a bibtex plugin, I defined:

[link]
names=reference
reference_url = http://www.some-where.org/wiki/References#%s

So that reference:001 points to the proper anchor in my References wiki page (anchors come from the headings).

However, I would have found it more convenient to do that:

[link]
names=reference
reference_url = [wiki:References#%s]

This is just an example but I'm pretty sure other useful ones can be used. Regards, Guardian

Attachments (0)

Change History (7)

comment:1 Changed 18 years ago by Christian Boos

Interesting idea. As a side note (as the request was for 0.9), in Trac 0.10 with the help of the InterWiki feature, you could achieve this by setting the following entry in your InterMapTxt page:

names /yourprojectname/wiki/References#$1     # See $1 in References

comment:2 in reply to:  description ; Changed 18 years ago by Christian Boos

Replying to Guardian:

So that reference:001 points to the proper anchor in my References wiki page (anchors come from the headings).

Sorry, you wanted to use reference:001, not names:001, so the InterMapTxt entry should rather be:

reference /yourprojectname/wiki/References#$1     # See $1 in References

Note also that 0.10 allows you to specify explicitely the id for a heading, so you could write, e.g.

== Reference 001 == #001

in your References page.

comment:3 in reply to:  2 Changed 18 years ago by anonymous

Replying to cboos:

Thank you for the information, I'll definitely give it a try when I install 0.10

comment:4 in reply to:  2 Changed 18 years ago by anonymous

Replying to cboos:

Note also that 0.10 allows you to specify explicitely the id for a heading, so you could write, e.g.

== Reference 001 == #001

it does not work because #001 is viewed as a ticket trac link.

comment:5 Changed 18 years ago by Christian Boos

(sorry, I tried to reply to this yesterday, but th's disk was full ;) )

So yes, the example is wrong. You can't have a fragment identifier starting with a number, it's in the spec.

One can actually even build cross-refs footnotes with this...


-> wiki source:

=== A brand new section === #sec1
This can be explained in more details^[#ref001 1]^.

===== [#sec1 1]. __Creating new sections, why and how__, by R.J Hacker ===== #ref001

-> renders as:

A brand new section

This can be explained in more details1.

1. Creating new sections, why and how, by R.J Hacker

So can this be closed, or is there still something that you think could be enhanced in the trac:InterWiki syntax?

comment:6 in reply to:  5 Changed 18 years ago by guardian

Replying to cboos:

One can actually even build cross-refs footnotes with this...

Nice usage example.

So can this be closed, or is there still something that you think could be enhanced in the trac:InterWiki syntax?

I don't know if the discussion belongs to this ticket, however when using trac:InterWiki, it could be nice to have the opportunity to control the default display of the link itself and not only the tooltip like GeneralLinkSyntaxPlugin allows to do: the reference:001 wiki syntax would generate a [001] link instead of a reference:001 link.

I don't know if such a feature would be usefull though since reference:001 clearly gives the nature of the information: this is a link to a reference document; which could be preferred.

comment:7 Changed 12 years ago by Ryan J Ollos

Resolution: wontfix
Status: newclosed

This plugin is deprecated in Trac 0.10. InterMapTxt provides the same functionality. The 0.9 version of the plugin is no longer supported.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Shun-ichi Goto.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


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

 
Note: See TracTickets for help on using tickets.