[pmwiki-users] External Links

Petko Yotov 5ko at free.fr
Sun Oct 1 02:34:36 CDT 2006


On Sunday 01 October 2006 08:50, Mark Trumpold wrote:
> Hi all
>
> Does anyone one know if there is a way to make ALL external links open in a
> new window or tab?
>
> Thanks

Add the following to config.php:

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

Please take a look at http://pmwiki.org/wiki/Cookbook/ExternalLinks

Petko




More information about the pmwiki-users mailing list