Tags:
create new tag
view all tags

Question

Is there any way, perhaps using a plugin, to make the display of "double bracketed" links to external sites look different to links to twiki pages.

For example, I'd like a link to http://www.AndyPryke.com to look different to AndyPryke when the link is made using the [[ markup.

This would allow me to make links to long urls like http://www.onlinecommunityreport.com/features/mayfield in a friendlier form like Social Text Interview but have it clear to viewers that the link is external and not to a twiki page called SocialTextInterview

The markup could be as simple as different colouring or perhaps the addition of a small icon.

If this feature isn't currently available in TWiki, then I guess this should become a FeatureRequest.

Environment

TWiki version: TWikiRelease01Feb2003
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS:  
Web server:  
Perl version:  
Client OS:  
Web Browser: Multiple

-- AndyPryke - 13 Jan 2004

Answer

I was looking at the code in TWiki.pm and it would be ideal if we could specify a DecoratorPattern to all links.

It is not clear to me if this exists, but my desire would be to add a small arrow gif to external links. I've seen this in JSPWiki for instance.

Another thought would be to associate CeeSesSesClasses with each link type and let the TWikiSkins handle the formatting externally.

-- JeffSchilling - 24 Jan 2004

And more... I see that a proposal exists for this functionality in MorePluginHooks

-- JeffSchilling - 24 Jan 2004

And some discussions on CSS is in TWikiUsingCSS

-- PeterThoeny - 02 Apr 2004

Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2004-04-02 - 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.