[pmwiki-users] $UrlLinkFmt
Petko Yotov
5ko at 5ko.fr
Sun Nov 1 09:07:23 PST 2020
All InterMap links default to $UrlLinkFmt, unless there is a specific
$IMapLinkFmt entry, like:
$IMapLinkFmt['ftp:']
$IMapLinkFmt['PmWiki:']
$IMapLinkFmt['mailto:']
Note that if you have enabled ObfuscateLinkIMap (core function based on
DeObMail), the snippet can be customized in:
$IMapLinkFmt['obfuscate-mailto:']
Also note that the ObfuscateLinkIMap logic expects the snippet to have
some recognizable properties -- classes, elements, otherwise it may not
work. I suggest starting with the default snippet, make small
modifications and test if it works.
This is the default (for ObfuscateLinkIMap):
$IMapLinkFmt['obfuscate-mailto:'] = "<span class='_pmXmail'
title=\"\$LinkAlt\"><span class='_t'>\$LinkText</span><span
class='_m'>\$LinkUrl</span></span>"
Petko
On 01/11/2020 02:37, Simon wrote:
> https://www.pmwiki.org/wiki/PmWiki/LinkVariables#UrlLinkFmt
>
> The documentation says
> $UrlLinkFmt
> The (HTML) string to output for URL-links that begin with 'http:',
> 'ftp:',
> etc. Defaults to <a class='urllink' href='\$LinkUrl' title='\$LinkAlt'
> rel='nofollow'>\$LinkText</a>
>
> but the "etc" does not encompass "mailto:"
>
> Should it? (I think so), or is there an equivalent for <a
> href="mailto:...
> ?
> e.g. $MailtoLinkFmt
More information about the pmwiki-users
mailing list