[pmwiki-users] Differentiate external links ?
romat2 at gmail.com
Mon Sep 11 09:54:20 CDT 2006
On 9/11/06, Olivier Citeau <ociteau at yahoo.fr> wrote:
> pmwiki is a great tool. Anyway, I miss something found in mediawiki
> 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> <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
2. Icon image is not displayed in print output.
More information about the pmwiki-users