[Pmwiki-users] external link handleing.

John Rankin john.rankin
Thu Jul 22 00:00:38 CDT 2004


On Thursday, 22 July 2004 4:54 PM, Kass Lloyd <kasslloyd at gmail.com> wrote:
>Is there any way to change how external links are handled in PmWiki?
>Like have them automaticly set to target a new window instead of
>opening in the same window, and/or adding an icon to them to indicate
>their external links instead of internal.

You can add a line to local/config.php

Change $UrlLinkFmt to like:

  $UrlLinkFmt = "<a class='urllink' target='_blank' href='\$Url'>\$LinkText</a>";

You could also, for example, include an <img src=...> at the start or the end to show an icon. A small blue and green earth would be nice.

Hope this helps.


-- 
JR
--
John Rankin





More information about the pmwiki-users mailing list