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

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