Tags:
plugin_api1Add my vote for this tag create new tag
view all tags
I would propose additional Pluginhandlers for manipulating links. The purpose is to give an easier path for plugin developers to process all links in a topic.

  • processInternalLink
    Add a call in TWiki::internalLink to the Plugin manager to handle "processInternalLink", I would add this call just before the link itself is constructed in internalLink (lib/TWiki.pm:2373 - Feb03 Release). All the relevant variables (theWeb, theTopic, anchor, theLinkText) and a hash that stores link attributes (title, onfocus, ...) should be passed, so that the plugins can access and even modify them.

  • processExternalLink
    Add a call in TWiki::externalLink to the Plugin manager to handle "processExternalLink", I would add this call just before the link itself is constructed externalLink (lib/TWiki.pm:2450 - Feb03 Release). Here, only the URL itself would be of interest (plus a hash for the link attributes).

My initial idea was to write a different version of the UpdateInfoPlugin - one where the status check is always performed (unless the preferences disable it). For this, it would be extremely dandy if one could simply modify all internal link as the are parsed by the framework. The external link handler is just for completeness - might be of use in certain scenarios (ie: url rewriting plugins).

I'll be working on a patch for this tonight and could provide it for merging - if this proposal is accepted.

-- JuergenPabel - 25 Mar 2003

I've just seen the same request on MorePluginHooks

-- JuergenPabel - 25 Mar 2003

QUESTION? Did anything ever come of this ? It would be great if the UpdateInfoPlugin status check were always performed (unless the preferences disable it).

-- KeithHelfrich - 16 Nov 2004

Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2008-08-28 - TWikiJanitor
 
  • 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.