
Implementing link proposals
Gathering thoughts before tackling a re-work of link handling in Foswiki
TODO
- Add performance testing of
Foswiki::Render existing link handling so we can track how much we slow things down.
- I tried to make a nice AddFoswikiFuncWikifyWebTopicName, but it turned into
Foswiki::Func::normalizeLinkString, which wanted to return a Foswiki::Address or Foswiki::Address::Link or Foswiki::Link::FoswikiAddress or something inheriting from CPAN:URI
- So, the goal is to make a generic link parser that will return these different types of objects.
- It should be that all link forms understood by
Foswiki::Address are usable in [[bracketed links]].
- It should be that InterwikiPlugin and SemanticLinksPlugin can hook in and claim their own link syntax (and return their own link objects)
- It should be that the
%URL{}% and friends suggested in EnableCloudStorageForAttachments and DeprecateContextlessURLConstructs can leverage this work.
- It should be that TopicDisplayName is just a special case of the link decorator which I had been thinking should enable mangling of URLs as per EnableCloudStorageForAttachments, but why not mangle the link text too.
- Anyway, update
Foswiki::Render to use the new OO way of parsing & generating links.
- Update WysiwygPlugin to leverage this work.
- Review performance.
--
PaulHarvey - 16 Dec 2011
One of the older proposals is
TopicDisplayName. Major concern raised is (foreseen) performance degradation. But with a different store implementation that might be less problematic.
--
ArthurClemens - 16 Dec 2011
Excellent! Added to the list.
--
PaulHarvey - 16 Dec 2011