[pmwiki-users] Differentiate external links ?

Roman romat2 at gmail.com
Mon Sep 11 09:54:20 CDT 2006

On 9/11/06, Olivier Citeau <ociteau at yahoo.fr> wrote:
> Hi,
> pmwiki is a great tool. Anyway, I miss something found in mediawiki
> (wikipedia).
> i wish to have a mark for external links, so that we can see wich is
> external, wich is internal.
> Is theer a way ?

There are several ways and I found this one as the best:

put these two lines to your config.php or farmconfig.php (of course,
you have to customize it to your image)

$IMapLinkFmt['http:'] = "<a class='urllink' target='_blank'
href='\$LinkUrl' >\$LinkText</a>&nbsp;<img
src='$FarmPubDirUrl/skins/$Skin/newwin.gif' alt='Page will open in a
new window or tab' />";
$IMapLinkFmt['https:'] = $IMapLinkFmt['http:'];

You may find also a solution using CSS but this has two problems:
1. Attachments have the the same class, so thet are displayed as a an
external link
2. Icon image is not displayed in print output.


More information about the pmwiki-users mailing list