Question
- TWiki version: TWiki 01 Feb 2003
- Perl version: 5.6.1
- Web server & version: Apache 1.3.9
- Server OS: Linux Debian (potato)
- Web browser & version: Any
- Client OS: Any
We use
InterwikiPlugin to make aliases on CPAN distros on
http://search.cpan.org
These aliases are defined on
InterWikis page as
I found that if I use such alias with CPAN distro which has name looking like
WikiWord then generated HTML for link is wrong.
For example
CPANdist:GraphViz
generates HTML like (line breaks added for clarity)
<a href="http://search.cpan.org/search?mode=dist&query=GraphViz" title="CPAN distributive <span style='background : #FFFFCE;'><font
color="#0000FF>GraphViz</font></span><a href="/twiki/bin/edit/Sandbox/GraphViz?topicparent=Sandbox.TestTopic8">?</a>">CPANdist:GraphViz</a>
what looks like
GraphViz?">CPANdist:GraphViz
After experiments with
InterwikiPlugin I found that links are generated correctly if I put
$page in single quotes in 'Tooltip Text' field in table on
InterWikis page.
--
IlyaMartynov - 04 Jun 2003
Answer
This is the current limitation of the Plugin, you need to watch out to escape $page in the tooltip text. All Interwiki links at TWiki.org are defined that way. See note in
InterwikiPlugin:
- Note: The Tooltip Text must not contain any HTML tags (including <nop> escape code), no internal WikiWord links, and no external links. Hint: Escape 'WikiWords' and '$page'.
--
PeterThoeny - 04 Jun 2003