Ticket #40 (closed enhancement: fixed)
InterWiki links support
| Reported by: | daniel | Owned by: | cboos |
|---|---|---|---|
| Priority: | normal | Milestone: | 0.10 |
| Component: | wiki system | Version: | devel |
| Severity: | major | Keywords: | intertrac |
| Cc: |
Description
It'd be sweet to have support for InterWiki links in wiki pages.
See also: http://moinmoin.wikiwikiweb.de/InterWiki
Attachments
Change History
comment:4 Changed 6 years ago by bje@…
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 ...)
Changed 6 years ago by bje@…
- attachment interwiki.patch added
Patch against 0.7.1 to support InterWiki links
comment:5 Changed 5 years ago by cboos
- Owner changed from jonas to cboos
- Status changed from new to assigned
- Milestone changed from 1.0 to 0.9
comment:7 Changed 5 years ago by cboos
- Priority changed from highest to normal
- Severity changed from normal to major
- Milestone changed from 0.9 to 1.0
comment:8 Changed 5 years ago by cboos
In fact, I created a special purpose ticket for the branch integration: #2041. You can find the patches against 0.9.x there.
comment:11 Changed 5 years ago by cboos
- Status changed from assigned to closed
- Resolution set to fixed



See also #41