|
Cookbook /
LazyWebLinksSummary: Cause markup text beginning with "www." to be automatically converted into a link to an external site
Version:
Prerequisites:
Status:
Maintainer:
GoalCause markup text beginning with "www." to be automatically converted into a link to an external site. SolutionAdd the following code to a local customization file: Markup('lazyweb','<wikilink', "/\\bwww\\.[^\\s$UrlExcludeChars]*[^\\s.,?!$UrlExcludeChars]/e", "Keep(MakeLink(\$pagename,'http://$0','$0'),'L')"); DiscussionThis recipe causes any text beginning with "www.", such as www.pmwiki.org, to be automatically converted to an http-link to an external site. This recipe has been enabled on this page to allow experimentation. Does this recipe "play nicely" with Approve URLs? Doesn't seem to be working below... --Peter Bowers July 18, 2010, at 01:55 PM See PITS:00036 (Main.ApprovedUrls doesn't work with Cookbook.LazyWebLinks). --Petko July 18, 2010, at 03:16 PM ContributorsSandbox
|