Opened 21 years ago
Closed 19 years ago
#40 closed enhancement (fixed)
InterWiki links support
Reported by: | daniel | Owned by: | Christian Boos |
---|---|---|---|
Priority: | normal | Milestone: | 0.10 |
Component: | wiki system | Version: | devel |
Severity: | major | Keywords: | intertrac |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
It'd be sweet to have support for InterWiki links in wiki pages.
Attachments (1)
Change History (12)
comment:1 by , 21 years ago
comment:2 by , 21 years ago
Priority: | high → normal |
---|---|
Version: | → 2.0 |
comment:3 by , 21 years ago
Milestone: | → 1.0 |
---|---|
Version: | 2.0 → devel |
comment:4 by , 21 years ago
I just added support for InterWiki links to my local Trac state, of a kind. In trac.ini
, I added a section:
[interwiki] trac = http://foo.com/projects/$page/trac.cgi/wiki
I then fiddled Wiki.py
around to check those options when it encountered an unknown module link, changed the url
regexps to match modules as well as other URLs (and also to limit the character set more rigidly), and removed the obsoleted modulehref
regexp. Upshot is, with the above setting, the following section renders correctly:
[trac:foo An InterWiki link][[BR]] trac:foo[[BR]] http://foo.com[[BR]] Apache::Session[[BR]] source:/trunk/README[[BR]]
In current trac, this renders as:
An InterWiki link
trac:foo[[BR]]
http://foo.com[[BR]]
Apache::Session
source:/trunk/README[[BR]]
I'll attach a patch, but my local copy of Wiki.py is very heavily modified, since we use a TWiki in other contexts and sharing the syntax was desirable. (It's going to get even more heavily modified, since TWiki syntax more or less requires you to examine context around a match, and Trac's approach means anything in that context cannot be used in other Wiki markup …)
comment:5 by , 20 years ago
Milestone: | 1.0 → 0.9 |
---|---|
Owner: | changed from | to
Status: | new → assigned |
comment:6 by , 19 years ago
Priority: | normal → highest |
---|
comment:7 by , 19 years ago
Milestone: | 0.9 → 1.0 |
---|---|
Priority: | highest → normal |
Severity: | normal → major |
comment:8 by , 19 years ago
In fact, I created a special purpose ticket for the branch integration: #2041. You can find the patches against 0.9.x there.
comment:9 by , 19 years ago
Keywords: | intertrac added |
---|
comment:10 by , 19 years ago
Milestone: | 1.0 → 0.10 |
---|
comment:11 by , 19 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
See also #41