Tags:
create new tag
view all tags

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

Alias: URL: Tooltip Text:
CPANdist http://search.cpan.org/search?mode=dist&query= CPAN distributive $page

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&amp;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.

Alias: URL: Tooltip Text:
CPANdist http://search.cpan.org/search?mode=dist&query= CPAN distributive '$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

Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r2 - 2003-06-04 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.